Re: [PATCH] ioctl_tty.2: Document TIOCSERGETLSR/TIOCSER_TEMT

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Pali!

On 10/26/22 21:12, Pali Rohár wrote:
Signed-off-by: Pali Rohár <pali@xxxxxxxxxx>

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: OpenPGP_signature
Description: OpenPGP digital signature


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux