8.6.4.6 Function events_del_hook()

Remove hook from the event drivers interrupt hook queue.

enum status_code events_del_hook( struct events_resource * resource, struct events_hook * hook)

Removes a hook from the event drivers interrupt hook queue.

Table 8-13. Parameters
Data directionParameter nameDescription

[in]

resource

Pointer to an events_resource struct instance

[in]

hook

Pointer to an events_hook struct instance

Returns

Status of the removal procedure.

Table 8-14. Return Values
Return valueDescription

STATUS_OK

Removal of hook went successful

STATUS_ERR_NO_MEMORY

There are no hooks instances in the event driver interrupt hook list

STATUS_ERR_NOT_FOUND

Interrupt hook not found in the event drivers interrupt hook list