NAME | SYNOPSIS | API RESTRICTIONS | DESCRIPTION | RETURN VALUES | ERRORS | ATTRIBUTES | SEE ALSO
$(OS_DIR)/lib/libsysevent.a #include <sys/sysevent.h> #include <libsysevent.h>sysevent_t * sysevent_alloc_event(char * class, char * subclass, char * vendor, char * pub_name, nvlist_t * *ttr_list);
The function or functions documented here may not be used safely in all application contexts with all APIs provided in the ChorusOS 5.0 product.
See API(5FEA) for details.
The sysevent_alloc_event() function allocates a system event from a preallocated event pool. There is one pool per configured event queue. The sysevent_alloc_event() function tries to allocate the event from the pool associated to the default event queue. If there is no available event in the queue, a null value is returned and an errno condition is set.
The _sysevent_alloc_event() function behaves like sysevent_alloc_event() , except that the event queue to which the event belongs must be specified.
Upon successful completion, sysevent_alloc_event() and _sysevent_alloc_event() return 0. Otherwise, they return NULL and set errno to indicate one of the following error conditions.
Invalid argument; notably set if one of the following conditions is met
The subclass , vendor or publisher argument is a null address
The class string is greater than MAX_CLASS_LEN
The subclass string is greater than MAX_SUBCLASS_LEN
The concatenated vendor and publisher strings are greater than MAX_PUB_LEN - 16
Permission denied
No available system event.
The system event feature is not configured or no system event server is available.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
NAME | SYNOPSIS | API RESTRICTIONS | DESCRIPTION | RETURN VALUES | ERRORS | ATTRIBUTES | SEE ALSO