mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
TTY: add tty_port_tty_hangup helper
It allows for cleaning up on a considerable amount of places. They did port_get, hangup, kref_put. Now the only thing needed is to call tty_port_tty_hangup which does exactly that. And they can also decide whether to consider CLOCAL or completely ignore that. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e4408ce3c2
commit
aa27a094e2
16 changed files with 58 additions and 148 deletions
|
@ -534,6 +534,7 @@ extern int tty_port_carrier_raised(struct tty_port *port);
|
|||
extern void tty_port_raise_dtr_rts(struct tty_port *port);
|
||||
extern void tty_port_lower_dtr_rts(struct tty_port *port);
|
||||
extern void tty_port_hangup(struct tty_port *port);
|
||||
extern void tty_port_tty_hangup(struct tty_port *port, bool check_clocal);
|
||||
extern void tty_port_tty_wakeup(struct tty_port *port);
|
||||
extern int tty_port_block_til_ready(struct tty_port *port,
|
||||
struct tty_struct *tty, struct file *filp);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue