diff options
author | Jiri Slaby <jslaby@suse.cz> | 2012-06-04 13:35:30 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-06-13 17:30:15 -0700 |
commit | d03702a27df017d1807fd4809f03adaa8e37005f (patch) | |
tree | e6ac398d123921fcf98adfae9d8d5bdf4e5380b3 /drivers/tty/vt/keyboard.c | |
parent | 5d249bc6a61e7a434c69e0d0becc77a803c8c5e8 (diff) | |
download | op-kernel-dev-d03702a27df017d1807fd4809f03adaa8e37005f.zip op-kernel-dev-d03702a27df017d1807fd4809f03adaa8e37005f.tar.gz |
PTY: add tty_port
This has *no* function in the PTY driver yet. However as the tty
buffers will move to the tty_port structure, we will need tty_port for
all TTYs in the system, PTY inclusive.
For PTYs this is ensured by allocating 2 tty_port's in pty_install,
i.e. where the tty->link is allocated. Both tty_port's are properly
assigned to each end of the tty.
Freeing is done at the same place where tty is freed, i.e. in
tty->ops->cleanup.
This means BTW that tty_port does not outlive TTY in PTY. This might
be a subject to change in the future if we see some problems.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/vt/keyboard.c')
0 files changed, 0 insertions, 0 deletions