[Previous]

[Contents]

[Next]


evt_close()

Release the connection with the Device Driver.

Synopsis:

#include <evt.h>
#include <lib_evt.h>
 
int evt_close( evt_cnx_t * );

Description:

The evt_close() function close the connection which was established between the process (or the thread) and the Device Driver (evt).

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


Note:

evt_close is not a mandatory call: the device driver release the resources allocated for a process which is terminated.


Returns:

Return 0 is the operation succeeds, or -1 if an error occurred (errno is then set).

Example:

See this simple example.

Errors:

TBD

See also:

evt_open()


[Previous]

[Contents]

[Next]