1 .. -*- coding: utf-8; mode: rst -*-
3 .. _lirc_set_rec_timeout:
5 **************************
6 ioctl LIRC_SET_REC_TIMEOUT
7 **************************
12 LIRC_SET_REC_TIMEOUT - sets the integer value for IR inactivity timeout.
17 .. cpp:function:: int ioctl( int fd, int request, __u32 *timeout )
23 File descriptor returned by open().
29 Timeout, in microseconds.
35 Sets the integer value for IR inactivity timeout.
37 If supported by the hardware, setting it to 0 disables all hardware timeouts
38 and data should be reported as soon as possible. If the exact value
39 cannot be set, then the next possible value _greater_ than the
40 given value should be set.
44 The range of supported timeout is given by :ref:`LIRC_GET_MIN_TIMEOUT`.
50 On success 0 is returned, on error -1 and the ``errno`` variable is set
51 appropriately. The generic error codes are described at the
52 :ref:`Generic Error Codes <gen-errors>` chapter.