Searched refs:tty (Results 1 – 2 of 2) sorted by relevance
656 struct tty_struct *tty; in revalidate_tty() local659 tty = get_current_tty(); in revalidate_tty()660 if (!tty) in revalidate_tty()663 spin_lock(&tty->files_lock); in revalidate_tty()664 if (!list_empty(&tty->tty_files)) { in revalidate_tty()668 file_priv = list_first_entry(&tty->tty_files, in revalidate_tty()676 spin_unlock(&tty->files_lock); in revalidate_tty()677 tty_kref_put(tty); in revalidate_tty()
2433 struct tty_struct *tty; in flush_unauthorized_files() local2437 tty = get_current_tty(); in flush_unauthorized_files()2438 if (tty) { in flush_unauthorized_files()2439 spin_lock(&tty->files_lock); in flush_unauthorized_files()2440 if (!list_empty(&tty->tty_files)) { in flush_unauthorized_files()2448 file_priv = list_first_entry(&tty->tty_files, in flush_unauthorized_files()2454 spin_unlock(&tty->files_lock); in flush_unauthorized_files()2455 tty_kref_put(tty); in flush_unauthorized_files()
Completed in 51 milliseconds