]> git.baikalelectronics.ru Git - kernel.git/commit
n_tty: Encapsulate minimum_to_wake within N_TTY
authorPeter Hurley <peter@hurleysoftware.com>
Sat, 15 Jun 2013 11:28:28 +0000 (07:28 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Jun 2013 19:55:11 +0000 (12:55 -0700)
commit8b7119c623a360605e874b1d8d5a68f38be8f9e9
treef7200d98ecaa899fb2c83d6b58b88a20b302f936
parent3a9f57a5173c34bc6c00a47d417edf90f3acaf48
n_tty: Encapsulate minimum_to_wake within N_TTY

minimum_to_wake is unique to N_TTY processing, and belongs in
per-ldisc data.

Add the ldisc method, ldisc_ops::fasync(), to notify line disciplines
when signal-driven I/O is enabled or disabled. When enabled for N_TTY
(by fcntl(F_SETFL, O_ASYNC)), blocking reader/polls will be woken
for any readable input. When disabled, blocking reader/polls are not
woken until the read buffer is full.

Canonical mode (L_ICANON(tty), n_tty_data::icanon) is not affected by
the minimum_to_wake setting.

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