lirc.4: Clarify the description LIRC_SET_REC_TIMEOUT

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2018-11-04 20:23:27 +01:00
parent c020b5a217
commit 0de3b92c34
1 changed files with 14 additions and 10 deletions

View File

@ -288,17 +288,21 @@ is 0) timeout packages in
The behavior of this operation has varied across kernel versions:
.RS
.IP * 3
Since Linux 4.16:
each time the
.BR lirc
device is opened, timeout reports are enabled for that
file descriptor.
Since Linux 4.16: each time the
.B lirc device is opened,
timeout reports are by default enabled for the resulting file descriptor.
The
.B LIRC_SET_REC_TIMEOUT
operation can be used to disable (and, if desired, to later re-enable)
the timeout on the file descriptor.
.IP *
In Linux 4.15 and earlier: timeout reports were disabled by default,
and enabling them had effect for
.I all
.BR lirc
file descriptors until timeouts were disabled again.
In Linux 4.15 and earlier:
timeout reports are disabled by default, and enabling them (via
.BR LIRC_SET_REC_TIMEOUT )
on any file descriptor associated with the
.B lirc
device has the effect of enabling timeouts for all file descriptors
referring to that device (until timeouts are disabled again).
.RE
.TP
.BR LIRC_SET_REC_CARRIER " (\fIint\fP)"