Lines Matching defs:tty
52 #include <linux/tty.h>
2410 struct tty_struct *tty;
2414 tty = get_current_tty();
2415 if (tty) {
2416 spin_lock(&tty->files_lock);
2417 if (!list_empty(&tty->tty_files)) {
2420 /* Revalidate access to controlling tty.
2421 Use file_path_has_perm on the tty path directly
2425 file_priv = list_first_entry(&tty->tty_files,
2431 spin_unlock(&tty->files_lock);
2432 tty_kref_put(tty);
2434 /* Reset controlling tty. */