1 .. -*- coding: utf-8; mode: rst -*-
11 This ioctl call returns an event if available. If an event is not
12 available, the behavior depends on whether the device is in blocking or
13 non-blocking mode. In the latter case, the call fails immediately with
14 errno set to ``EWOULDBLOCK``. In the former case, the call blocks until an
15 event becomes available.
20 .. c:function:: int ioctl( int fd, int request = DMX_GET_EVENT, struct dmx_event *ev)
36 - File descriptor returned by a previous call to open().
42 - Equals DMX_GET_EVENT for this command.
46 - struct dmx_event \*ev
48 - Pointer to the location where the event is to be stored.
54 On success 0 is returned, on error -1 and the ``errno`` variable is set
55 appropriately. The generic error codes are described at the
56 :ref:`Generic Error Codes <gen-errors>` chapter.
69 - There is no event pending, and the device is in non-blocking mode.