Lines Matching defs:tty
53 #include <linux/tty.h>
2426 struct tty_struct *tty;
2430 tty = get_current_tty();
2431 if (tty) {
2432 spin_lock(&tty->files_lock);
2433 if (!list_empty(&tty->tty_files)) {
2436 /* Revalidate access to controlling tty.
2437 Use file_path_has_perm on the tty path directly
2441 file_priv = list_first_entry(&tty->tty_files,
2447 spin_unlock(&tty->files_lock);
2448 tty_kref_put(tty);
2450 /* Reset controlling tty. */