NAME | SYNOPSIS | API RESTRICTIONS | PARAMETERS | DESCRIPTION | RETURN VALUE | ERRORS | ATTRIBUTES | SEE ALSO
$(NUCLEUS_DIR)/lib/sysevent/sysevent.a #include <sysevent/chSysevent.h>int syseventInit(KnSyseventParm *parm, int *spaceId);
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.
Address of a KnSyseventParm structure holding the configuration settings.
Address of an integer to receive the event space handle
The syseventInit() function initializes (creates or opens) a system event space. If the event space named by the global identifier held by the parm structure does not exist, it is created with the settings also held by the parm structure. Otherwise, if the event space already exists, it is merely opened.
If this call succeeds, an event space handle is copied to the location pointed to by spaceId.
This call provides a convenient way to join a common event space without placing additional synchronization constraints on the various actors. These constraints regard balancing creating against binding the event space.
K_OK is returned on successful completion. Otherwise, a negative error code is returned.
Insufficient addressing space to map the event pools
The event space does not exist yet, and some of the configuration settings are incorrect
One of the parameters has a null value
Cannot allocate the memory needed to create the event space
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
NAME | SYNOPSIS | API RESTRICTIONS | PARAMETERS | DESCRIPTION | RETURN VALUE | ERRORS | ATTRIBUTES | SEE ALSO