8.6.4.2 Function events_add_hook()
Insert hook into the event drivers interrupt hook queue.
enum status_code events_add_hook( struct events_resource * resource, struct events_hook * hook)
Inserts a hook into the event drivers interrupt hook queue.
Data direction | Parameter name | Description |
---|---|---|
[in] |
resource |
Pointer to an events_resource struct instance |
[in] |
hook |
Pointer to an events_hook struct instance |
Returns
Status of the insertion procedure.
Return value | Description |
---|---|
STATUS_OK |
Insertion of hook went successful |