summaryrefslogtreecommitdiff
path: root/include/linux/tty.h
diff options
context:
space:
mode:
authorCorey Minyard <cminyard@mvista.com>2020-11-24 03:49:01 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-01-07 18:30:55 +0300
commitf446776ebffb9d3fb145b8d84f7f358f64cb54d6 (patch)
tree1a7d8d91420a37e8152999f78307edbfa9981cd0 /include/linux/tty.h
parentc31c3ea02e218998da19f4cd6b7d86eb6e873df4 (diff)
downloadlinux-f446776ebffb9d3fb145b8d84f7f358f64cb54d6.tar.xz
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)
{ }