doc-rst: linux_tv: don't use uppercases for syscall sections
[deliverable/linux.git] / Documentation / linux_tv / media / dvb / fe-get-event.rst
CommitLineData
5377d91f
MH
1.. -*- coding: utf-8; mode: rst -*-
2
3.. _FE_GET_EVENT:
4
5************
6FE_GET_EVENT
7************
8
15e7d615 9Name
586027ce 10====
5377d91f 11
586027ce 12FE_GET_EVENT
5377d91f 13
15e7d615
MCC
14
15Synopsis
586027ce 16========
5377d91f 17
e3a54ab8 18.. c:function:: int ioctl(int fd, int request = QPSK_GET_EVENT, struct dvb_frontend_event *ev)
5377d91f 19
5377d91f 20
15e7d615 21Arguments
586027ce 22=========
5377d91f
MH
23
24.. flat-table::
25 :header-rows: 0
26 :stub-columns: 0
27
28
29 - .. row 1
30
31 - int fd
32
33 - File descriptor returned by a previous call to open().
34
35 - .. row 2
36
37 - int request
38
7347081e 39 - Equals :ref:`FE_GET_EVENT` for this command.
5377d91f
MH
40
41 - .. row 3
42
5d2b3f12 43 - struct dvb_frontend_event \*ev
5377d91f
MH
44
45 - Points to the location where the event,
46
47 - .. row 4
48
0579e6e3 49 -
5377d91f
MH
50 - if any, is to be stored.
51
52
15e7d615 53Description
586027ce
MCC
54===========
55
56This ioctl call returns a frontend event if available. If an event is
57not available, the behavior depends on whether the device is in blocking
58or non-blocking mode. In the latter case, the call fails immediately
59with errno set to ``EWOULDBLOCK``. In the former case, the call blocks until
60an event becomes available.
61
62
15e7d615 63Return Value
586027ce 64============
5377d91f
MH
65
66On success 0 is returned, on error -1 and the ``errno`` variable is set
67appropriately. The generic error codes are described at the
68:ref:`Generic Error Codes <gen-errors>` chapter.
69
70
71
72.. flat-table::
73 :header-rows: 0
74 :stub-columns: 0
75
76
77 - .. row 1
78
cdb4af0f 79 - ``EWOULDBLOCK``
5377d91f
MH
80
81 - There is no event pending, and the device is in non-blocking mode.
82
83 - .. row 2
84
cdb4af0f 85 - ``EOVERFLOW``
5377d91f
MH
86
87 - Overflow in event queue - one or more events were lost.
This page took 0.034729 seconds and 5 git commands to generate.