Commit 7e11a0fb authored by Tilman Schmidt's avatar Tilman Schmidt Committed by Greg Kroah-Hartman

tty: docs: serial/tty, add to ldisc methods

A small addition to the ldisc method descriptions.
Signed-off-by: default avatarTilman Schmidt <tilman@imap.cc>
Signed-off-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
Acked-by: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent c934878c
...@@ -42,7 +42,8 @@ TTY side interfaces: ...@@ -42,7 +42,8 @@ TTY side interfaces:
open() - Called when the line discipline is attached to open() - Called when the line discipline is attached to
the terminal. No other call into the line the terminal. No other call into the line
discipline for this tty will occur until it discipline for this tty will occur until it
completes successfully. Can sleep. completes successfully. Returning an error will
prevent the ldisc from being attached. Can sleep.
close() - This is called on a terminal when the line close() - This is called on a terminal when the line
discipline is being unplugged. At the point of discipline is being unplugged. At the point of
...@@ -52,7 +53,7 @@ close() - This is called on a terminal when the line ...@@ -52,7 +53,7 @@ close() - This is called on a terminal when the line
hangup() - Called when the tty line is hung up. hangup() - Called when the tty line is hung up.
The line discipline should cease I/O to the tty. The line discipline should cease I/O to the tty.
No further calls into the ldisc code will occur. No further calls into the ldisc code will occur.
Can sleep. The return value is ignored. Can sleep.
write() - A process is writing data through the line write() - A process is writing data through the line
discipline. Multiple write calls are serialized discipline. Multiple write calls are serialized
...@@ -83,6 +84,10 @@ ioctl() - Called when an ioctl is handed to the tty layer ...@@ -83,6 +84,10 @@ ioctl() - Called when an ioctl is handed to the tty layer
that might be for the ldisc. Multiple ioctl calls that might be for the ldisc. Multiple ioctl calls
may occur in parallel. May sleep. may occur in parallel. May sleep.
compat_ioctl() - Called when a 32 bit ioctl is handed to the tty layer
that might be for the ldisc. Multiple ioctl calls
may occur in parallel. May sleep.
Driver Side Interfaces: Driver Side Interfaces:
receive_buf() - Hand buffers of bytes from the driver to the ldisc receive_buf() - Hand buffers of bytes from the driver to the ldisc
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment