* [PATCH] ioctl_tty.2: Document TIOCSERGETLSR/TIOCSER_TEMT
@ 2022-10-26 19:12 Pali Rohár
2022-10-26 19:26 ` Alejandro Colomar
0 siblings, 1 reply; 2+ messages in thread
From: Pali Rohár @ 2022-10-26 19:12 UTC (permalink / raw)
To: linux-man, Alejandro Colomar, Michael Kerrisk; +Cc: linux-serial
Signed-off-by: Pali Rohár <pali@kernel.org>
---
man2/ioctl_tty.2 | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/man2/ioctl_tty.2 b/man2/ioctl_tty.2
index 759ea7bba62f..41ff38b6f578 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)
--
2.20.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ioctl_tty.2: Document TIOCSERGETLSR/TIOCSER_TEMT
2022-10-26 19:12 [PATCH] ioctl_tty.2: Document TIOCSERGETLSR/TIOCSER_TEMT Pali Rohár
@ 2022-10-26 19:26 ` Alejandro Colomar
0 siblings, 0 replies; 2+ messages in thread
From: Alejandro Colomar @ 2022-10-26 19:26 UTC (permalink / raw)
To: Pali Rohár, linux-man; +Cc: linux-serial
[-- Attachment #1.1: Type: text/plain, Size: 1377 bytes --]
Hi Pali!
On 10/26/22 21:12, Pali Rohár wrote:
> Signed-off-by: Pali Rohár <pali@kernel.org>
Patch applied. Thanks!
Cheers,
Alex
> ---
> man2/ioctl_tty.2 | 16 +++++++++++++++-
> 1 file changed, 15 insertions(+), 1 deletion(-)
>
> diff --git a/man2/ioctl_tty.2 b/man2/ioctl_tty.2
> index 759ea7bba62f..41ff38b6f578 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)
--
<http://www.alejandro-colomar.es/>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-10-26 19:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-26 19:12 [PATCH] ioctl_tty.2: Document TIOCSERGETLSR/TIOCSER_TEMT Pali Rohár
2022-10-26 19:26 ` Alejandro Colomar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox