mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-24 19:40:21 +09:00
tty: fix tty_port_tty_*hangup() kernel-doc
commit 6241b49540a65a6d5274fa938fd3eb4cbfe2e076 upstream. The commit below added a new helper, but omitted to move (and add) the corressponding kernel-doc. Do it now. Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org> Fixes: 2b5eac0f8c6e ("tty: introduce and use tty_port_tty_vhangup() helper") Link: https://lore.kernel.org/all/b23d566c-09dc-7374-cc87-0ad4660e8b2e@linux.intel.com/ Reported-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Cc: Jonathan Corbet <corbet@lwn.net> Cc: linux-doc@vger.kernel.org Link: https://lore.kernel.org/r/20250624080641.509959-6-jirislaby@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
25466e5b4b
commit
21e82354cd
@@ -42,9 +42,10 @@ TTY Refcounting
|
||||
TTY Helpers
|
||||
-----------
|
||||
|
||||
.. kernel-doc:: include/linux/tty_port.h
|
||||
:identifiers: tty_port_tty_hangup tty_port_tty_vhangup
|
||||
.. kernel-doc:: drivers/tty/tty_port.c
|
||||
:identifiers: tty_port_tty_hangup tty_port_tty_wakeup
|
||||
|
||||
:identifiers: tty_port_tty_wakeup
|
||||
|
||||
Modem Signals
|
||||
-------------
|
||||
|
||||
@@ -409,11 +409,6 @@ void tty_port_hangup(struct tty_port *port)
|
||||
}
|
||||
EXPORT_SYMBOL(tty_port_hangup);
|
||||
|
||||
/**
|
||||
* tty_port_tty_hangup - helper to hang up a tty
|
||||
* @port: tty port
|
||||
* @check_clocal: hang only ttys with %CLOCAL unset?
|
||||
*/
|
||||
void __tty_port_tty_hangup(struct tty_port *port, bool check_clocal, bool async)
|
||||
{
|
||||
struct tty_struct *tty = tty_port_tty_get(port);
|
||||
|
||||
@@ -254,11 +254,20 @@ static inline int tty_port_users(struct tty_port *port)
|
||||
return port->count + port->blocked_open;
|
||||
}
|
||||
|
||||
/**
|
||||
* tty_port_tty_hangup - helper to hang up a tty asynchronously
|
||||
* @port: tty port
|
||||
* @check_clocal: hang only ttys with %CLOCAL unset?
|
||||
*/
|
||||
static inline void tty_port_tty_hangup(struct tty_port *port, bool check_clocal)
|
||||
{
|
||||
__tty_port_tty_hangup(port, check_clocal, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* tty_port_tty_vhangup - helper to hang up a tty synchronously
|
||||
* @port: tty port
|
||||
*/
|
||||
static inline void tty_port_tty_vhangup(struct tty_port *port)
|
||||
{
|
||||
__tty_port_tty_hangup(port, false, false);
|
||||
|
||||
Reference in New Issue
Block a user