Skip to content

Commit

Permalink
tty: docs: serial/tty, add to ldisc methods
Browse files Browse the repository at this point in the history
A small addition to the ldisc method descriptions.

Signed-off-by: Tilman Schmidt <tilman@imap.cc>
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Tilman Schmidt authored and Greg Kroah-Hartman committed Dec 11, 2009
1 parent c934878 commit 7e11a0f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Documentation/serial/tty.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ TTY side interfaces:
open() - Called when the line discipline is attached to
the terminal. No other call into the line
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
discipline is being unplugged. At the point of
Expand All @@ -52,7 +53,7 @@ close() - This is called on a terminal when the line
hangup() - Called when the tty line is hung up.
The line discipline should cease I/O to the tty.
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
discipline. Multiple write calls are serialized
Expand Down Expand Up @@ -83,6 +84,10 @@ ioctl() - Called when an ioctl is handed to the tty layer
that might be for the ldisc. Multiple ioctl calls
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:

receive_buf() - Hand buffers of bytes from the driver to the ldisc
Expand Down

0 comments on commit 7e11a0f

Please sign in to comment.