1 .. -*- coding: utf-8; mode: rst -*-
14 .. attention:: This ioctl is deprecated.
20 .. c:function:: int ioctl(int fd, FE_GET_EVENT, struct dvb_frontend_event *ev)
28 File descriptor returned by :c:func:`open() <dvb-fe-open>`.
31 Points to the location where the event, if any, is to be stored.
37 This ioctl call returns a frontend event if available. If an event is
38 not available, the behavior depends on whether the device is in blocking
39 or non-blocking mode. In the latter case, the call fails immediately
40 with errno set to ``EWOULDBLOCK``. In the former case, the call blocks until
41 an event becomes available.
47 On success 0 is returned, on error -1 and the ``errno`` variable is set
48 appropriately. The generic error codes are described at the
49 :ref:`Generic Error Codes <gen-errors>` chapter.
62 - There is no event pending, and the device is in non-blocking mode.
68 - Overflow in event queue - one or more events were lost.