]> git.baikalelectronics.ru Git - kernel.git/commit
tty: Move packet mode flow control notifications to pty driver
authorPeter Hurley <peter@hurleysoftware.com>
Wed, 10 Sep 2014 19:06:32 +0000 (15:06 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Sep 2014 04:19:35 +0000 (21:19 -0700)
commitc25992842ca5179cdad4b95965a93ffbcf2ea65a
tree070bd77695ad97ee4d8541a4f97dc78d049a04d8
parent36463f39c643922e1013b77461402acc5ef21128
tty: Move packet mode flow control notifications to pty driver

When a master pty is set to packet mode, flow control changes to
the slave pty cause notifications to the master pty via reads and
polls. However, these tests are occurring for all ttys, not
just ptys.

Implement flow control packet mode notifications in the pty driver.
Only the slave side implements the flow control handlers since
packet mode is asymmetric; the master pty receives notifications
for slave-side changes, but not vice versa.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/pty.c
drivers/tty/tty_io.c