aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/tty.h
diff options
context:
space:
mode:
authorCorey Minyard <cminyard@mvista.com>2020-11-23 18:49:01 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-01-07 16:30:55 +0100
commitf446776ebffb9d3fb145b8d84f7f358f64cb54d6 (patch)
tree1a7d8d91420a37e8152999f78307edbfa9981cd0 /include/linux/tty.h
parentserial: stm32: update transmission complete error message in shutdown (diff)
downloadlinux-dev-f446776ebffb9d3fb145b8d84f7f358f64cb54d6.tar.xz
linux-dev-f446776ebffb9d3fb145b8d84f7f358f64cb54d6.zip
tty: Export redirect release
This will be required by the pty code when it removes tty_vhangup() on master close. Signed-off-by: Corey Minyard <cminyard@mvista.com> Link: https://lore.kernel.org/r/20201124004902.1398477-2-minyard@acm.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/tty.h')
-rw-r--r--include/linux/tty.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/tty.h b/include/linux/tty.h
index b57f6812b3ba..dd6ded6138f7 100644
--- a/include/linux/tty.h
+++ b/include/linux/tty.h
@@ -421,6 +421,7 @@ extern void tty_kclose(struct tty_struct *tty);
extern int tty_dev_name_to_number(const char *name, dev_t *number);
extern int tty_ldisc_lock(struct tty_struct *tty, unsigned long timeout);
extern void tty_ldisc_unlock(struct tty_struct *tty);
+extern struct file *tty_release_redirect(struct tty_struct *tty);
#else
static inline void tty_kref_put(struct tty_struct *tty)
{ }