aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2022-10-26 21:12:02 +0200
committerAlejandro Colomar <alx@kernel.org>2022-10-29 23:51:46 +0200
commit386f80c56a3995b031b153b1b719f89fd68870c6 (patch)
treec0c89e380524e91914c9c710f81bc1279e1f82be
parent48fea6deb5057a9cd8ebefb73682aa077e629c94 (diff)
downloadman-pages-386f80c56a3995b031b153b1b719f89fd68870c6.tar.gz
ioctl_tty.2: Document TIOCSERGETLSR/TIOCSER_TEMT
Signed-off-by: Pali Rohár <pali@kernel.org> Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r--man2/ioctl_tty.216
1 files changed, 15 insertions, 1 deletions
diff --git a/man2/ioctl_tty.2 b/man2/ioctl_tty.2
index 759ea7bba6..41ff38b6f5 100644
--- a/man2/ioctl_tty.2
+++ b/man2/ioctl_tty.2
@@ -309,6 +309,21 @@ for the argument values
.BR TCIFLUSH ,
.BR TCOFLUSH ,
.BR TCIOFLUSH .
+.TP
+.B TIOCSERGETLSR
+Argument:
+.BI "int\~*" argp
+.IP
+Get line status register. Status register has
+.B TIOCSER_TEMT
+bit set when output buffer is empty and also hardware transmitter is physically empty.
+.IP
+Does not have to be supported by all serial tty drivers.
+.IP
+.BR tcdrain (3)
+does not wait and returns immediately when
+.B TIOCSER_TEMT
+bit is set.
.SS Faking input
.TP
.B TIOCSTI
@@ -890,7 +905,6 @@ main(int argc, char *argv[])
.\" TIOCSERGWILD int *
.\" TIOCSERSWILD const int *
.\" TIOCSERGSTRUCT struct async_struct *
-.\" TIOCSERGETLSR int *
.\" TIOCSERGETMULTI struct serial_multiport_struct *
.\" TIOCSERSETMULTI const struct serial_multiport_struct *
.\" TIOCGSERIAL, TIOCSSERIAL (see above)