[Previous]

[Contents]

[Next]


evt_open()

Connection to the Device Driver.

Synopsis:

#include <evt.h>
#include <lib_evt.h>
 
evt_cnx_t *evt_open( void );

Description:

The evt_open() function connects the task (process or thread) to the Device Driver (evt). The Device Driver uses the device name /dev/evt, with a Major of 127 and a Minor of 0.

evt_cnx_t is an opaque structure, which is used for all further API operations.


Note:

evt_open must be called by either the tasks doing the signaling or being signaled.


Returns:

Return a pointer to a evt_cnx_t opaque structure (that will be used in the API functions), or NULL if an error occurred (errno is then set).

Example:

See this simple example.

Errors:

ETIMEDOUT

Occurs if the messip manager did not answered the connection request within the expressed time.

 

See also:

evt_close()


[Previous]

[Contents]

[Next]