Searched refs:o_tty (Results 1 – 4 of 4) sorted by relevance
/Linux-v5.4/drivers/tty/ |
D | pty.c | 382 struct tty_struct *o_tty; in pty_common_install() local 399 o_tty = alloc_tty_struct(driver->other, idx); in pty_common_install() 400 if (!o_tty) in pty_common_install() 403 tty_set_lock_subclass(o_tty); in pty_common_install() 404 lockdep_set_subclass(&o_tty->termios_rwsem, TTY_LOCK_SLAVE); in pty_common_install() 410 tty_init_termios(o_tty); in pty_common_install() 412 driver->other->ttys[idx] = o_tty; in pty_common_install() 417 memset(&o_tty->termios_locked, 0, sizeof(tty->termios_locked)); in pty_common_install() 418 o_tty->termios = driver->other->init_termios; in pty_common_install() 426 tty->link = o_tty; in pty_common_install() [all …]
|
D | tty_ldisc.c | 776 int tty_ldisc_setup(struct tty_struct *tty, struct tty_struct *o_tty) in tty_ldisc_setup() argument 782 if (o_tty) { in tty_ldisc_setup() 787 retval = tty_ldisc_open(o_tty, o_tty->ldisc); in tty_ldisc_setup() 806 struct tty_struct *o_tty = tty->link; in tty_ldisc_release() local 813 tty_ldisc_lock_pair(tty, o_tty); in tty_ldisc_release() 815 if (o_tty) in tty_ldisc_release() 816 tty_ldisc_kill(o_tty); in tty_ldisc_release() 817 tty_ldisc_unlock_pair(tty, o_tty); in tty_ldisc_release()
|
D | tty_io.c | 1551 struct tty_struct *o_tty = tty->link; in tty_release_checks() local 1553 if (o_tty != tty->driver->other->ttys[idx]) { in tty_release_checks() 1558 if (o_tty->link != tty) { in tty_release_checks() 1559 tty_debug(tty, "bad link = %p\n", o_tty->link); in tty_release_checks() 1652 struct tty_struct *o_tty = NULL; in tty_release() local 1669 o_tty = tty->link; in tty_release() 1682 tty_lock_slave(o_tty); in tty_release() 1710 if (o_tty && o_tty->count <= 1) { in tty_release() 1711 if (waitqueue_active(&o_tty->read_wait)) { in tty_release() 1712 wake_up_poll(&o_tty->read_wait, EPOLLIN); in tty_release() [all …]
|
/Linux-v5.4/include/linux/ |
D | tty.h | 711 extern int tty_ldisc_setup(struct tty_struct *tty, struct tty_struct *o_tty);
|