NAME | SYNOPSIS | PARAMETERS | DESCRIPTION | RETURN VALUES | ERRORS | ATTRIBUTES | SEE ALSO
$(OS_DIR)/lib/libsysevent.a #include <sys/sysevent.h> #include <libsysevent.h>sysevent_t *sysevent_get_event(struct timeval * timeout);
The sysevent_get_event() function attempts to retrieve a system event posted to any event queue, up to the specified timeout interval.
The _sysevent_get_event() function behaves like sysevent_get_event() , except that the event queue to wait on must be specified.
At least four event queues are available:
Used by the microkernel to publish events
Used by the device drivers to publish events
Used by the operating system to publish events
Used by user-level applications to publish events
In addition to these predefined queues, a number of extra event queues may be optionally configured at the core system event level. These optional queues are identified by an index number that starts at 0 for the first extra queue.
The _sysevent_get_event() function can be explicitly requested to wait for system events on all the valid event queues at the same time, by setting the queue parameter to SE_ANY_QUEUE .
The timeout parameter can also be set to the following values:
To request a non-blocking attempt
To request unbounded wait
Upon successful completion, sysevent_get_event() and _sysevent_get_event() return a system event handle; 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
No system event queue posted within the specified timeout
Permission denied
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 | PARAMETERS | DESCRIPTION | RETURN VALUES | ERRORS | ATTRIBUTES | SEE ALSO