Lines Matching refs:o_tty
1631 struct tty_struct *o_tty = tty->link;
1633 if (o_tty != tty->driver->other->ttys[idx]) {
1638 if (o_tty->link != tty) {
1639 tty_debug(tty, "bad link = %p\n", o_tty->link);
1727 struct tty_struct *o_tty = NULL;
1744 o_tty = tty->link;
1757 tty_lock_slave(o_tty);
1766 * The test for the o_tty closing is necessary, since the master and
1785 if (o_tty && o_tty->count <= 1) {
1786 if (waitqueue_active(&o_tty->read_wait)) {
1787 wake_up_poll(&o_tty->read_wait, EPOLLIN);
1790 if (waitqueue_active(&o_tty->write_wait)) {
1791 wake_up_poll(&o_tty->write_wait, EPOLLOUT);
1809 if (o_tty) {
1810 if (--o_tty->count < 0) {
1811 tty_warn(tty, "bad slave count (%d)\n", o_tty->count);
1812 o_tty->count = 0;
1835 * processes that still think tty or o_tty is their controlling
1841 if (o_tty)
1842 session_clear_tty(o_tty->ctrl.session);
1847 final = !tty->count && !(o_tty && o_tty->count);
1849 tty_unlock_slave(o_tty);