Lines Matching +full:linux +full:- +full:event +full:- +full:codes
1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
11 ----
18 --------
25 ---------
27 .. flat-table::
28 :header-rows: 0
29 :stub-columns: 0
31 - .. row 1
33 - int fd
35 - File descriptor returned by a previous call to open().
37 - .. row 2
39 - int request
41 - Equals VIDEO_GET_EVENT for this command.
43 - .. row 3
45 - struct video_event \*ev
47 - Points to the location where the event, if any, is to be stored.
50 -----------
55 This ioctl call returns an event of type video_event if available. If
56 an event is not available, the behavior depends on whether the device is
57 in blocking or non-blocking mode. In the latter case, the call fails
59 blocks until an event becomes available. The standard Linux poll()
63 specified as the wake-up condition. Read-only permissions are sufficient
68 .. code-block:: c
85 ------------
87 On success 0 is returned, on error -1 and the ``errno`` variable is set
88 appropriately. The generic error codes are described at the
89 :ref:`Generic Error Codes <gen-errors>` chapter.
91 .. flat-table::
92 :header-rows: 0
93 :stub-columns: 0
95 - .. row 1
97 - ``EWOULDBLOCK``
99 - There is no event pending, and the device is in non-blocking mode.
101 - .. row 2
103 - ``EOVERFLOW``
105 - Overflow in event queue - one or more events were lost.