1 .. Permission is granted to copy, distribute and/or modify this
2 .. document under the terms of the GNU Free Documentation License,
3 .. Version 1.1 or any later version published by the Free Software
4 .. Foundation, with no Invariant Sections, no Front-Cover Texts
5 .. and no Back-Cover Texts. A copy of the license is included at
6 .. Documentation/media/uapi/fdl-appendix.rst.
8 .. TODO: replace it to GFDL-1.1-or-later WITH no-invariant-sections
21 .. attention:: This ioctl is deprecated.
27 .. c:function:: int ioctl(int fd, FE_GET_EVENT, struct dvb_frontend_event *ev)
35 File descriptor returned by :c:func:`open() <dvb-fe-open>`.
38 Points to the location where the event, if any, is to be stored.
44 This ioctl call returns a frontend event if available. If an event is
45 not available, the behavior depends on whether the device is in blocking
46 or non-blocking mode. In the latter case, the call fails immediately
47 with errno set to ``EWOULDBLOCK``. In the former case, the call blocks until
48 an event becomes available.
54 On success 0 is returned.
56 On error -1 is returned, and the ``errno`` variable is set
69 - There is no event pending, and the device is in non-blocking mode.
75 - Overflow in event queue - one or more events were lost.
77 Generic error codes are described at the
78 :ref:`Generic Error Codes <gen-errors>` chapter.