Searched refs:o_tty (Results 1 – 4 of 4) sorted by relevance
/Linux-v4.19/drivers/tty/ |
D | pty.c | 381 struct tty_struct *o_tty; in pty_common_install() local 398 o_tty = alloc_tty_struct(driver->other, idx); in pty_common_install() 399 if (!o_tty) in pty_common_install() 402 tty_set_lock_subclass(o_tty); in pty_common_install() 403 lockdep_set_subclass(&o_tty->termios_rwsem, TTY_LOCK_SLAVE); in pty_common_install() 409 tty_init_termios(o_tty); in pty_common_install() 411 driver->other->ttys[idx] = o_tty; in pty_common_install() 416 memset(&o_tty->termios_locked, 0, sizeof(tty->termios_locked)); in pty_common_install() 417 o_tty->termios = driver->other->init_termios; in pty_common_install() 425 tty->link = o_tty; in pty_common_install() [all …]
|
D | tty_ldisc.c | 756 int tty_ldisc_setup(struct tty_struct *tty, struct tty_struct *o_tty) in tty_ldisc_setup() argument 762 if (o_tty) { in tty_ldisc_setup() 763 retval = tty_ldisc_open(o_tty, o_tty->ldisc); in tty_ldisc_setup() 782 struct tty_struct *o_tty = tty->link; in tty_ldisc_release() local 789 tty_ldisc_lock_pair(tty, o_tty); in tty_ldisc_release() 791 if (o_tty) in tty_ldisc_release() 792 tty_ldisc_kill(o_tty); in tty_ldisc_release() 793 tty_ldisc_unlock_pair(tty, o_tty); in tty_ldisc_release()
|
D | tty_io.c | 1533 struct tty_struct *o_tty = tty->link; in tty_release_checks() local 1535 if (o_tty != tty->driver->other->ttys[idx]) { in tty_release_checks() 1540 if (o_tty->link != tty) { in tty_release_checks() 1541 tty_debug(tty, "bad link = %p\n", o_tty->link); in tty_release_checks() 1634 struct tty_struct *o_tty = NULL; in tty_release() local 1651 o_tty = tty->link; in tty_release() 1664 tty_lock_slave(o_tty); in tty_release() 1692 if (o_tty && o_tty->count <= 1) { in tty_release() 1693 if (waitqueue_active(&o_tty->read_wait)) { in tty_release() 1694 wake_up_poll(&o_tty->read_wait, EPOLLIN); in tty_release() [all …]
|
/Linux-v4.19/include/linux/ |
D | tty.h | 703 extern int tty_ldisc_setup(struct tty_struct *tty, struct tty_struct *o_tty);
|