1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
2 .. c:namespace:: DTV.fe
15 .. attention:: This ioctl is deprecated.
20 .. c:macro:: FE_GET_EVENT
22 ``int ioctl(int fd, FE_GET_EVENT, struct dvb_frontend_event *ev)``
28 File descriptor returned by :c:func:`open()`.
31 Points to the location where the event, if any, is to be stored.
36 This ioctl call returns a frontend event if available. If an event is
37 not available, the behavior depends on whether the device is in blocking
38 or non-blocking mode. In the latter case, the call fails immediately
39 with errno set to ``EWOULDBLOCK``. In the former case, the call blocks until
40 an event becomes available.
45 On success 0 is returned.
47 On error -1 is returned, and the ``errno`` variable is set
58 - There is no event pending, and the device is in non-blocking mode.
64 - Overflow in event queue - one or more events were lost.
66 Generic error codes are described at the
67 :ref:`Generic Error Codes <gen-errors>` chapter.