aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/tty_driver.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/tty_driver.h')
-rw-r--r--include/linux/tty_driver.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/tty_driver.h b/include/linux/tty_driver.h
index ac6e58e26b73..2322313a8589 100644
--- a/include/linux/tty_driver.h
+++ b/include/linux/tty_driver.h
@@ -21,6 +21,11 @@
21 * 21 *
22 * Required method. 22 * Required method.
23 * 23 *
24 * void (*shutdown)(struct tty_struct * tty);
25 *
26 * This routine is called when a particular tty device is closed for
27 * the last time freeing up the resources.
28 *
24 * int (*write)(struct tty_struct * tty, 29 * int (*write)(struct tty_struct * tty,
25 * const unsigned char *buf, int count); 30 * const unsigned char *buf, int count);
26 * 31 *
@@ -200,6 +205,7 @@ struct tty_driver;
200struct tty_operations { 205struct tty_operations {
201 int (*open)(struct tty_struct * tty, struct file * filp); 206 int (*open)(struct tty_struct * tty, struct file * filp);
202 void (*close)(struct tty_struct * tty, struct file * filp); 207 void (*close)(struct tty_struct * tty, struct file * filp);
208 void (*shutdown)(struct tty_struct *tty);
203 int (*write)(struct tty_struct * tty, 209 int (*write)(struct tty_struct * tty,
204 const unsigned char *buf, int count); 210 const unsigned char *buf, int count);
205 int (*put_char)(struct tty_struct *tty, unsigned char ch); 211 int (*put_char)(struct tty_struct *tty, unsigned char ch);