Lines Matching defs:o_tty
1629 struct tty_struct *o_tty = tty->link;
1631 if (o_tty != tty->driver->other->ttys[idx]) {
1636 if (o_tty->link != tty) {
1637 tty_debug(tty, "bad link = %p\n", o_tty->link);
1725 struct tty_struct *o_tty = NULL;
1742 o_tty = tty->link;
1755 tty_lock_slave(o_tty);
1764 * The test for the o_tty closing is necessary, since the master and
1783 if (o_tty && o_tty->count <= 1) {
1784 if (waitqueue_active(&o_tty->read_wait)) {
1785 wake_up_poll(&o_tty->read_wait, EPOLLIN);
1788 if (waitqueue_active(&o_tty->write_wait)) {
1789 wake_up_poll(&o_tty->write_wait, EPOLLOUT);
1807 if (o_tty) {
1808 if (--o_tty->count < 0) {
1809 tty_warn(tty, "bad slave count (%d)\n", o_tty->count);
1810 o_tty->count = 0;
1833 * processes that still think tty or o_tty is their controlling
1839 if (o_tty)
1840 session_clear_tty(o_tty->ctrl.session);
1845 final = !tty->count && !(o_tty && o_tty->count);
1847 tty_unlock_slave(o_tty);