tty_ioctl.4: Document TIOCMIWAIT and TIOCGICOUNT

Reported-by: Stephane Fillod <fillods@users.sf.net>
Reported-by: Andreas Heiduk <asheiduk@googlemail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Frédéric Maria 2015-05-01 21:27:42 +02:00 committed by Michael Kerrisk
parent d398da7b87
commit 1dcf15ddf4
1 changed files with 17 additions and 0 deletions

View File

@ -368,6 +368,14 @@ Clear the indicated modem bits.
.TP
.BI "TIOCMBIS const int *" argp
Set the indicated modem bits.
.TP
.BI "TIOCMIWAIT int " arg
Wait for any of the 4 modem bits (DCD, RI, DSR, CTS) to change.
The mask is passed in arg for bits of interest (use |'ed
TIOCM_RNG/DSR/CD/CTS for masking).
Caller should use
.B TIOCGICOUNT
to see which one it was.
.LP
The following bits are used by the above ioctls:
@ -384,6 +392,15 @@ TIOCM_RNG RNG (ring)
TIOCM_RI see TIOCM_RNG
TIOCM_DSR DSR (data set ready)
.fi
.TP
.BI "TIOCGICOUNT struct serial_icounter_struct *" argp
Get counter of input serial line interrupts (DCD, RI, DSR, CTS).
Write counters to the user passed
.I argp
serial_icounter_struct structure.
NB: both 1->0 and 0->1 transitions are counted except for
RI where only 0->1 is counted.
.SS Marking a line as local
.TP
.BI "TIOCGSOFTCAR int *" argp