18c2ecf20Sopenharmony_ci.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 28c2ecf20Sopenharmony_ci.. c:namespace:: DTV.fe 38c2ecf20Sopenharmony_ci 48c2ecf20Sopenharmony_ci.. _FE_GET_EVENT: 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ci************ 78c2ecf20Sopenharmony_ciFE_GET_EVENT 88c2ecf20Sopenharmony_ci************ 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ciName 118c2ecf20Sopenharmony_ci==== 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ciFE_GET_EVENT 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci.. attention:: This ioctl is deprecated. 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ciSynopsis 188c2ecf20Sopenharmony_ci======== 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ci.. c:macro:: FE_GET_EVENT 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ci``int ioctl(int fd, FE_GET_EVENT, struct dvb_frontend_event *ev)`` 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ciArguments 258c2ecf20Sopenharmony_ci========= 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_ci``fd`` 288c2ecf20Sopenharmony_ci File descriptor returned by :c:func:`open()`. 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci``ev`` 318c2ecf20Sopenharmony_ci Points to the location where the event, if any, is to be stored. 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ciDescription 348c2ecf20Sopenharmony_ci=========== 358c2ecf20Sopenharmony_ci 368c2ecf20Sopenharmony_ciThis ioctl call returns a frontend event if available. If an event is 378c2ecf20Sopenharmony_cinot available, the behavior depends on whether the device is in blocking 388c2ecf20Sopenharmony_cior non-blocking mode. In the latter case, the call fails immediately 398c2ecf20Sopenharmony_ciwith errno set to ``EWOULDBLOCK``. In the former case, the call blocks until 408c2ecf20Sopenharmony_cian event becomes available. 418c2ecf20Sopenharmony_ci 428c2ecf20Sopenharmony_ciReturn Value 438c2ecf20Sopenharmony_ci============ 448c2ecf20Sopenharmony_ci 458c2ecf20Sopenharmony_ciOn success 0 is returned. 468c2ecf20Sopenharmony_ci 478c2ecf20Sopenharmony_ciOn error -1 is returned, and the ``errno`` variable is set 488c2ecf20Sopenharmony_ciappropriately. 498c2ecf20Sopenharmony_ci 508c2ecf20Sopenharmony_ci.. flat-table:: 518c2ecf20Sopenharmony_ci :header-rows: 0 528c2ecf20Sopenharmony_ci :stub-columns: 0 538c2ecf20Sopenharmony_ci 548c2ecf20Sopenharmony_ci - .. row 1 558c2ecf20Sopenharmony_ci 568c2ecf20Sopenharmony_ci - ``EWOULDBLOCK`` 578c2ecf20Sopenharmony_ci 588c2ecf20Sopenharmony_ci - There is no event pending, and the device is in non-blocking mode. 598c2ecf20Sopenharmony_ci 608c2ecf20Sopenharmony_ci - .. row 2 618c2ecf20Sopenharmony_ci 628c2ecf20Sopenharmony_ci - ``EOVERFLOW`` 638c2ecf20Sopenharmony_ci 648c2ecf20Sopenharmony_ci - Overflow in event queue - one or more events were lost. 658c2ecf20Sopenharmony_ci 668c2ecf20Sopenharmony_ciGeneric error codes are described at the 678c2ecf20Sopenharmony_ci:ref:`Generic Error Codes <gen-errors>` chapter. 68