[Previous]

[Contents]

[Next]


evt_delete_channel()

Delete an event channel.

Synopsis:

#include <evt.h>
#include <lib_evt.h>
 
int evt_delete_channel(const evt_cnx_t *evtcnx, void *channel_handle )

Description:

The evt_delete_channel() function detach from an event channel and delete this resource.

The evt_delete_channel function needs the following parameters:

evtcnx

Opaque structure pointer as returned by the initial call to evt_open()

channel_handle

Event channel handle which which reference the channel to detach from and which was returned by a previous call to evt_create_channel.


Note:

evt_delete_channel 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:

EBADF

Occurs if the handle is invalid or if the channel referenced by the given handle is not opened.

See also:

evt_open(), evt_create_channel(), evt_locate_channel()


[Previous]

[Contents]

[Next]