summaryrefslogtreecommitdiffstats
path: root/include/linux/tty.h
diff options
context:
space:
mode:
authorPeter Hurley2015-10-17 22:36:23 +0200
committerGreg Kroah-Hartman2015-10-18 06:32:21 +0200
commite176058f0de53c2346734e5254835e0045364001 (patch)
treeb5a4e03beb2a24c03ca5023599f045cc5375828a /include/linux/tty.h
parenttty: Prevent tty teardown during tty_write_message() (diff)
downloadkernel-qcow2-linux-e176058f0de53c2346734e5254835e0045364001.tar.gz
kernel-qcow2-linux-e176058f0de53c2346734e5254835e0045364001.tar.xz
kernel-qcow2-linux-e176058f0de53c2346734e5254835e0045364001.zip
tty: Abstract tty buffer work
Introduce API functions to restart and cancel tty buffer work, rather than manipulate buffer work directly. Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/tty.h')
-rw-r--r--include/linux/tty.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/tty.h b/include/linux/tty.h
index 533d7f6e2481..5b04b0a5375b 100644
--- a/include/linux/tty.h
+++ b/include/linux/tty.h
@@ -467,6 +467,8 @@ extern void tty_buffer_free_all(struct tty_port *port);
extern void tty_buffer_flush(struct tty_struct *tty, struct tty_ldisc *ld);
extern void tty_buffer_init(struct tty_port *port);
extern void tty_buffer_set_lock_subclass(struct tty_port *port);
+extern bool tty_buffer_restart_work(struct tty_port *port);
+extern bool tty_buffer_cancel_work(struct tty_port *port);
extern speed_t tty_termios_baud_rate(struct ktermios *termios);
extern speed_t tty_termios_input_baud_rate(struct ktermios *termios);
extern void tty_termios_encode_baud_rate(struct ktermios *termios,