int io_notify (resmgr_context_t * ctp , io_notify_t * msg , RESMGR_OCB_T * ocb )
Classification: I/O
Default handler: none
Helper functions: iofunc_notify(), iofunc_notify_remove(), iofunc_notify_trigger()
Client functions: select(), ionotify()
Messages: _IO_NOTIFY
Data structure:
struct _io_notify { uint16_t type; uint16_t combine_len; int32_t action; int32_t flags; struct sigevent event; }; struct _io_notify_reply { uint32_t zero; uint32_t flags; }; typedef union { struct _io_notify i; struct _io_notify_reply o; } io_notify_t;
Description: The handler is responsible for installing, polling, or removing a notification handler. The action and flags determine the kind of notification operation and conditions; the event is a struct sigevent structure that defines the notification event (if any) that the client wishes to be signaled with. You'd use the MsgDeliverEvent() or iofunc_notify_trigger() functions to deliver the event to the client.
Returns: The status via the helper macro _RESMGR_STATUS; the flags are returned via message reply.