nmc-utils  0.1.1
Handling events: select/epoll

Functions

int easynmc_pollmark (struct easynmc_handle *h)

Detailed Description

As an alternative to tokens you can use system epoll or select calls to handle events from DSP. To do that, you have to call select/epoll with memfd field of easynmc handle. The following convention is used:

easynmc.h declares convenience POLLLP, POLLHP and POLLNMI constants as well as EPOLLLP, EPOLLHP and EPOLLNMI

The driver will dispatch only one event at a time. You can use easynmc_pollmark() to clean any pending events. You are advised to do that once before starting to process any events.

Function Documentation

int easynmc_pollmark ( struct easynmc_handle h)

Reset any pending events for poll/epoll interface

Parameters
h
Returns

Definition at line 1097 of file easynmc-core.c.

References easynmc_handle::iofd.

Referenced by do_mon_epoll(), and main().