Home
last modified time | relevance | path

Searched refs:o_tty (Results 1 – 4 of 4) sorted by relevance

/linux-4.1.27/drivers/tty/
Dpty.c375 struct tty_struct *o_tty; in pty_common_install() local
392 o_tty = alloc_tty_struct(driver->other, idx); in pty_common_install()
393 if (!o_tty) in pty_common_install()
396 tty_set_lock_subclass(o_tty); in pty_common_install()
397 lockdep_set_subclass(&o_tty->termios_rwsem, TTY_LOCK_SLAVE); in pty_common_install()
406 retval = tty_init_termios(o_tty); in pty_common_install()
410 driver->other->ttys[idx] = o_tty; in pty_common_install()
415 memset(&o_tty->termios_locked, 0, sizeof(tty->termios_locked)); in pty_common_install()
416 o_tty->termios = driver->other->init_termios; in pty_common_install()
424 tty->link = o_tty; in pty_common_install()
[all …]
Dtty_ldisc.c730 int tty_ldisc_setup(struct tty_struct *tty, struct tty_struct *o_tty) in tty_ldisc_setup() argument
739 if (o_tty) { in tty_ldisc_setup()
740 retval = tty_ldisc_open(o_tty, o_tty->ldisc); in tty_ldisc_setup()
774 struct tty_struct *o_tty = tty->link; in tty_ldisc_release() local
783 tty_ldisc_lock_pair(tty, o_tty); in tty_ldisc_release()
785 if (o_tty) in tty_ldisc_release()
786 tty_ldisc_kill(o_tty); in tty_ldisc_release()
787 tty_ldisc_unlock_pair(tty, o_tty); in tty_ldisc_release()
Dtty_io.c1735 struct tty_struct *o_tty = tty->link; in tty_release_checks() local
1737 if (o_tty != tty->driver->other->ttys[idx]) { in tty_release_checks()
1742 if (o_tty->link != tty) { in tty_release_checks()
1773 struct tty_struct *o_tty = NULL; in tty_release() local
1791 o_tty = tty->link; in tty_release()
1807 tty_lock_slave(o_tty); in tty_release()
1835 if (o_tty && o_tty->count <= 1) { in tty_release()
1836 if (waitqueue_active(&o_tty->read_wait)) { in tty_release()
1837 wake_up_poll(&o_tty->read_wait, POLLIN); in tty_release()
1840 if (waitqueue_active(&o_tty->write_wait)) { in tty_release()
[all …]
/linux-4.1.27/include/linux/
Dtty.h582 extern int tty_ldisc_setup(struct tty_struct *tty, struct tty_struct *o_tty);