Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

init()

Initialize a module's private data

Synopsis:

static int init( input_module_t *pModule );

Description:

This function initializes the data structure pointed to by pModule. It's invoked by the Input Runtime System during startup before the module is linked into an event bus.

This function should allocate and initialize any private data in the data structure.

Returns:

EOK
Success.
ENOMEM
There isn't enough memory to allocate private data member.

Examples:

See any module.

Classification:

Your code

Safety:
Interrupt handler Yes
Signal handler Yes
Thread Yes