Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1.. -*- coding: utf-8; mode: rst -*-
2
3.. _lirc_set_rec_timeout_reports:
4
5**********************************
6ioctl LIRC_SET_REC_TIMEOUT_REPORTS
7**********************************
8
9Name
10====
11
12LIRC_SET_REC_TIMEOUT_REPORTS - enable or disable timeout reports for IR receive
13
14Synopsis
15========
16
17.. cpp:function:: int ioctl( int fd, int request, __u32 *enable )
18
19Arguments
20=========
21
22``fd``
23 File descriptor returned by open().
24
25``request``
26 LIRC_SET_REC_TIMEOUT_REPORTS
27
28``enable``
29 enable = 1 means enable timeout report, enable = 0 means disable timeout
30 reports.
31
32
33Description
34===========
35
36Enable or disable timeout reports for IR receive. By default, timeout reports
37should be turned off.
38
39.. note::
40
41 This ioctl is only valid for :ref:`LIRC_MODE_MODE2 <lirc-mode-mode2>`.
42
43
44Return Value
45============
46
47On success 0 is returned, on error -1 and the ``errno`` variable is set
48appropriately. The generic error codes are described at the
49:ref:`Generic Error Codes <gen-errors>` chapter.