File tree Expand file tree Collapse file tree 3 files changed +12
-7
lines changed
Documentation/driver-api/tty Expand file tree Collapse file tree 3 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -42,9 +42,10 @@ TTY Refcounting
4242TTY Helpers
4343-----------
4444
45+ .. kernel-doc :: include/linux/tty_port.h
46+ :identifiers: tty_port_tty_hangup tty_port_tty_vhangup
4547.. kernel-doc :: drivers/tty/tty_port.c
46- :identifiers: tty_port_tty_hangup tty_port_tty_wakeup
47-
48+ :identifiers: tty_port_tty_wakeup
4849
4950Modem Signals
5051-------------
Original file line number Diff line number Diff line change @@ -391,11 +391,6 @@ void tty_port_hangup(struct tty_port *port)
391391}
392392EXPORT_SYMBOL (tty_port_hangup );
393393
394- /**
395- * tty_port_tty_hangup - helper to hang up a tty
396- * @port: tty port
397- * @check_clocal: hang only ttys with %CLOCAL unset?
398- */
399394void __tty_port_tty_hangup (struct tty_port * port , bool check_clocal , bool async )
400395{
401396 struct tty_struct * tty = tty_port_tty_get (port );
Original file line number Diff line number Diff line change @@ -251,11 +251,20 @@ static inline int tty_port_users(struct tty_port *port)
251251 return port -> count + port -> blocked_open ;
252252}
253253
254+ /**
255+ * tty_port_tty_hangup - helper to hang up a tty asynchronously
256+ * @port: tty port
257+ * @check_clocal: hang only ttys with %CLOCAL unset?
258+ */
254259static inline void tty_port_tty_hangup (struct tty_port * port , bool check_clocal )
255260{
256261 __tty_port_tty_hangup (port , check_clocal , true);
257262}
258263
264+ /**
265+ * tty_port_tty_vhangup - helper to hang up a tty synchronously
266+ * @port: tty port
267+ */
259268static inline void tty_port_tty_vhangup (struct tty_port * port )
260269{
261270 __tty_port_tty_hangup (port , false, false);
You can’t perform that action at this time.
0 commit comments