|
@@ -467,6 +467,11 @@ extern int tty_port_close_start(struct tty_port *port,
|
|
extern void tty_port_close_end(struct tty_port *port, struct tty_struct *tty);
|
|
extern void tty_port_close_end(struct tty_port *port, struct tty_struct *tty);
|
|
extern void tty_port_close(struct tty_port *port,
|
|
extern void tty_port_close(struct tty_port *port,
|
|
struct tty_struct *tty, struct file *filp);
|
|
struct tty_struct *tty, struct file *filp);
|
|
|
|
+extern inline int tty_port_users(struct tty_port *port)
|
|
|
|
+{
|
|
|
|
+ return port->count + port->blocked_open;
|
|
|
|
+}
|
|
|
|
+
|
|
extern int tty_register_ldisc(int disc, struct tty_ldisc_ops *new_ldisc);
|
|
extern int tty_register_ldisc(int disc, struct tty_ldisc_ops *new_ldisc);
|
|
extern int tty_unregister_ldisc(int disc);
|
|
extern int tty_unregister_ldisc(int disc);
|
|
extern int tty_set_ldisc(struct tty_struct *tty, int ldisc);
|
|
extern int tty_set_ldisc(struct tty_struct *tty, int ldisc);
|