diff options
| author | Jiri Slaby (SUSE) <jirislaby@kernel.org> | 2025-06-24 10:06:41 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-01-11 15:19:26 +0100 |
| commit | 7d84329cf4874389632c8c931401781634d266db (patch) | |
| tree | 12ededd5f96491ad59fecfb9cb74907dd3259e0c /include | |
| parent | 73d964ce4bc8b4de88a7c2e40df494f0d5cd8950 (diff) | |
| download | linux-7d84329cf4874389632c8c931401781634d266db.tar.gz linux-7d84329cf4874389632c8c931401781634d266db.tar.bz2 linux-7d84329cf4874389632c8c931401781634d266db.zip | |
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>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/tty_port.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/tty_port.h b/include/linux/tty_port.h index 4ecd6fa9aacb..1ec146b8d0f4 100644 --- a/include/linux/tty_port.h +++ b/include/linux/tty_port.h @@ -253,11 +253,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); |
