Lines Matching refs:tty
52 #include <linux/tty.h>
2424 struct tty_struct *tty;
2428 tty = get_current_tty();
2429 if (tty) {
2430 spin_lock(&tty->files_lock);
2431 if (!list_empty(&tty->tty_files)) {
2434 /* Revalidate access to controlling tty.
2435 Use file_path_has_perm on the tty path directly
2439 file_priv = list_first_entry(&tty->tty_files,
2445 spin_unlock(&tty->files_lock);
2446 tty_kref_put(tty);
2448 /* Reset controlling tty. */