Lines Matching defs:o_tty
1640 struct tty_struct *o_tty = tty->link;
1642 if (o_tty != tty->driver->other->ttys[idx]) {
1647 if (o_tty->link != tty) {
1648 tty_debug(tty, "bad link = %p\n", o_tty->link);
1737 struct tty_struct *o_tty = NULL;
1754 o_tty = tty->link;
1767 tty_lock_slave(o_tty);
1776 * The test for the o_tty closing is necessary, since the master and
1795 if (o_tty && o_tty->count <= 1) {
1796 if (waitqueue_active(&o_tty->read_wait)) {
1797 wake_up_poll(&o_tty->read_wait, EPOLLIN);
1800 if (waitqueue_active(&o_tty->write_wait)) {
1801 wake_up_poll(&o_tty->write_wait, EPOLLOUT);
1819 if (o_tty) {
1820 if (--o_tty->count < 0) {
1821 tty_warn(tty, "bad slave count (%d)\n", o_tty->count);
1822 o_tty->count = 0;
1845 * processes that still think tty or o_tty is their controlling
1851 if (o_tty)
1852 session_clear_tty(o_tty->session);
1857 final = !tty->count && !(o_tty && o_tty->count);
1859 tty_unlock_slave(o_tty);