aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/tty.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/tty.h b/include/linux/tty.h
index b64d10b66548..c30ed8d3bcbd 100644
--- a/include/linux/tty.h
+++ b/include/linux/tty.h
@@ -182,6 +182,7 @@ struct signal_struct;
182 182
183struct tty_port { 183struct tty_port {
184 struct tty_struct *tty; /* Back pointer */ 184 struct tty_struct *tty; /* Back pointer */
185 spinlock_t lock; /* Lock protecting tty field */
185 int blocked_open; /* Waiting to open */ 186 int blocked_open; /* Waiting to open */
186 int count; /* Usage count */ 187 int count; /* Usage count */
187 wait_queue_head_t open_wait; /* Open waiters */ 188 wait_queue_head_t open_wait; /* Open waiters */
@@ -405,6 +406,8 @@ extern int tty_write_lock(struct tty_struct *tty, int ndelay);
405extern void tty_port_init(struct tty_port *port); 406extern void tty_port_init(struct tty_port *port);
406extern int tty_port_alloc_xmit_buf(struct tty_port *port); 407extern int tty_port_alloc_xmit_buf(struct tty_port *port);
407extern void tty_port_free_xmit_buf(struct tty_port *port); 408extern void tty_port_free_xmit_buf(struct tty_port *port);
409extern struct tty_struct *tty_port_tty_get(struct tty_port *port);
410extern void tty_port_tty_set(struct tty_port *port, struct tty_struct *tty);
408 411
409extern int tty_register_ldisc(int disc, struct tty_ldisc_ops *new_ldisc); 412extern int tty_register_ldisc(int disc, struct tty_ldisc_ops *new_ldisc);
410extern int tty_unregister_ldisc(int disc); 413extern int tty_unregister_ldisc(int disc);