]> git.baikalelectronics.ru Git - kernel.git/commit
[TTY]: Fix network driver interactions with TCGET/SET calls.
authorAlan Cox <alan@redhat.com>
Wed, 7 Nov 2007 09:24:56 +0000 (01:24 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 7 Nov 2007 12:14:19 +0000 (04:14 -0800)
commit8a9a18c2ecf94e591df739b1e016fab02531f243
tree4ae26ce4c71511fad3bad97384dce22a69c16bb6
parent7ad278d32fb08813ce7504e185bb489d5a96173c
[TTY]: Fix network driver interactions with TCGET/SET calls.

Dave Miller noted various cases where line disciplines for things like
ppp go poking around in termios themselves in ways that broke with the
new termios code. Rather than have them all learning about termios
internals provide proper methods for this

- tty_mode_ioctl()

This handles all the terminal mode handling for speed/carrier
etc and none of the methods are ldisc dependant so they can be called
by any user

- tty_perform_flush()

This extracts the flush functionality and enables pppd the ppp
layer to share it cleanly.

The existing n_tty_ioctl code is refactored in this patch to provide
the new functions and to call them itself appropriately. This patch
has no (intended) behaviour changes and simply prepares for the other
fixes.

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/char/tty_ioctl.c
include/linux/tty.h