Searched refs:tty (Results 1 – 2 of 2) sorted by relevance
621 struct tty_struct *tty; in revalidate_tty() local624 tty = get_current_tty(); in revalidate_tty()625 if (!tty) in revalidate_tty()628 spin_lock(&tty->files_lock); in revalidate_tty()629 if (!list_empty(&tty->tty_files)) { in revalidate_tty()633 file_priv = list_first_entry(&tty->tty_files, in revalidate_tty()640 spin_unlock(&tty->files_lock); in revalidate_tty()641 tty_kref_put(tty); in revalidate_tty()
2530 struct tty_struct *tty; in flush_unauthorized_files() local2534 tty = get_current_tty(); in flush_unauthorized_files()2535 if (tty) { in flush_unauthorized_files()2536 spin_lock(&tty->files_lock); in flush_unauthorized_files()2537 if (!list_empty(&tty->tty_files)) { in flush_unauthorized_files()2545 file_priv = list_first_entry(&tty->tty_files, in flush_unauthorized_files()2551 spin_unlock(&tty->files_lock); in flush_unauthorized_files()2552 tty_kref_put(tty); in flush_unauthorized_files()