1 .. -*- coding: utf-8; mode: rst -*-
18 .. cpp:function:: int ioctl(int fd, int request = QPSK_GET_EVENT, struct dvb_frontend_event *ev)
33 - File descriptor returned by a previous call to open().
39 - Equals :ref:`FE_GET_EVENT` for this command.
43 - struct dvb_frontend_event \*ev
45 - Points to the location where the event,
50 - if any, is to be stored.
56 This ioctl call returns a frontend event if available. If an event is
57 not available, the behavior depends on whether the device is in blocking
58 or non-blocking mode. In the latter case, the call fails immediately
59 with errno set to ``EWOULDBLOCK``. In the former case, the call blocks until
60 an event becomes available.
66 On success 0 is returned, on error -1 and the ``errno`` variable is set
67 appropriately. The generic error codes are described at the
68 :ref:`Generic Error Codes <gen-errors>` chapter.
81 - There is no event pending, and the device is in non-blocking mode.
87 - Overflow in event queue - one or more events were lost.