Linux 4.8.3
[linux/fpc-iii.git] / Documentation / media / uapi / rc / lirc-set-rec-timeout-reports.rst
blob0c7f85d0ce3bffdfc7a63e12a732e870a68ac136
1 .. -*- coding: utf-8; mode: rst -*-
3 .. _lirc_set_rec_timeout_reports:
5 **********************************
6 ioctl LIRC_SET_REC_TIMEOUT_REPORTS
7 **********************************
9 Name
10 ====
12 LIRC_SET_REC_TIMEOUT_REPORTS - enable or disable timeout reports for IR receive
14 Synopsis
15 ========
17 .. cpp:function:: int ioctl( int fd, int request, __u32 *enable )
19 Arguments
20 =========
22 ``fd``
23     File descriptor returned by open().
25 ``request``
26     LIRC_SET_REC_TIMEOUT_REPORTS
28 ``enable``
29     enable = 1 means enable timeout report, enable = 0 means disable timeout
30     reports.
33 Description
34 ===========
36 Enable or disable timeout reports for IR receive. By default, timeout reports
37 should be turned off.
39 .. note::
41    This ioctl is only valid for :ref:`LIRC_MODE_MODE2 <lirc-mode-mode2>`.
44 Return Value
45 ============
47 On success 0 is returned, on error -1 and the ``errno`` variable is set
48 appropriately. The generic error codes are described at the
49 :ref:`Generic Error Codes <gen-errors>` chapter.