Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tty: Unexport system-wide tty_mutex

tty_mutex is a core, system-wide lock; there is no reason for any
code outside the tty core to have direct access.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Peter Hurley and committed by
Greg Kroah-Hartman
d1d027ef 9de2a7ce

+1 -3
+1 -3
drivers/tty/tty_io.c
··· 135 135 136 136 LIST_HEAD(tty_drivers); /* linked list of tty drivers */ 137 137 138 - /* Mutex to protect creating and releasing a tty. This is shared with 139 - vt.c for deeply disgusting hack reasons */ 138 + /* Mutex to protect creating and releasing a tty */ 140 139 DEFINE_MUTEX(tty_mutex); 141 - EXPORT_SYMBOL(tty_mutex); 142 140 143 141 /* Spinlock to protect the tty->tty_files list */ 144 142 DEFINE_SPINLOCK(tty_files_lock);