Function events_create_hook()

Initializes an interrupt hook for insertion in the event interrupt hook queue.

enum status_code events_create_hook(
		struct events_hook * hook,
		events_interrupt_hook hook_func)

Initializes a hook structure so it is ready for insertion in the interrupt hook queue.

Table 1. Parameters
Data direction Parameter name Description



Pointer to an events_hook struct instance



Pointer to a function containing the interrupt hook code


Status of the hook creation procedure.

Table 2. Return Values
Return value Description


Creation and initialization of interrupt hook went successful