mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 08:14:15 +08:00
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>
This commit is contained in:
parent
9de2a7cef9
commit
d1d027eff5
@ -135,10 +135,8 @@ EXPORT_SYMBOL(tty_std_termios);
|
|||||||
|
|
||||||
LIST_HEAD(tty_drivers); /* linked list of tty drivers */
|
LIST_HEAD(tty_drivers); /* linked list of tty drivers */
|
||||||
|
|
||||||
/* Mutex to protect creating and releasing a tty. This is shared with
|
/* Mutex to protect creating and releasing a tty */
|
||||||
vt.c for deeply disgusting hack reasons */
|
|
||||||
DEFINE_MUTEX(tty_mutex);
|
DEFINE_MUTEX(tty_mutex);
|
||||||
EXPORT_SYMBOL(tty_mutex);
|
|
||||||
|
|
||||||
/* Spinlock to protect the tty->tty_files list */
|
/* Spinlock to protect the tty->tty_files list */
|
||||||
DEFINE_SPINLOCK(tty_files_lock);
|
DEFINE_SPINLOCK(tty_files_lock);
|
||||||
|
Loading…
Reference in New Issue
Block a user