This function is used to register/un-register event notification with XilSEM Server. Primarily this function sends an IPI request to PLM to invoke SEM Event Notifier registration, waits for PLM to process the request and check the status.
Note: The caller shall initialize the notifier object before invoking the XSem_RegisterEvent function.
Prototype
XStatus XSem_RegisterEvent(XIpiPsu *IpiInst, XSem_Notifier *Notifier);
Parameters
The following table lists the XSem_RegisterEvent
function arguments.
Type | Name | Description |
---|---|---|
XIpiPsu * | IpiInst | Pointer to IPI driver instance |
XSem_Notifier
* |
Notifier | Pointer of the notifier object to be associated with the requested notification |
Returns
This API returns the success or failure.- XST_FAILURE: On event registration/un-registration failure
- XST_SUCCESS: On event registration/un-registration success