Searched refs:o_tty (Results 1 - 8 of 8) sorted by relevance
/kernel/linux/linux-5.10/drivers/tty/ |
H A D | pty.c | 373 struct tty_struct *o_tty; in pty_common_install() local 390 o_tty = alloc_tty_struct(driver->other, idx); in pty_common_install() 391 if (!o_tty) in pty_common_install() 394 tty_set_lock_subclass(o_tty); in pty_common_install() 395 lockdep_set_subclass(&o_tty->termios_rwsem, TTY_LOCK_SLAVE); in pty_common_install() 401 tty_init_termios(o_tty); in pty_common_install() 403 driver->other->ttys[idx] = o_tty; in pty_common_install() 408 memset(&o_tty->termios_locked, 0, sizeof(tty->termios_locked)); in pty_common_install() 409 o_tty->termios = driver->other->init_termios; in pty_common_install() 413 * Everything allocated ... set up the o_tty structur in pty_common_install() [all...] |
H A D | tty_ldisc.c | 764 * @o_tty: pair tty for pty/tty pairs 771 int tty_ldisc_setup(struct tty_struct *tty, struct tty_struct *o_tty) in tty_ldisc_setup() argument 777 if (o_tty) { in tty_ldisc_setup() 779 * Called without o_tty->ldisc_sem held, as o_tty has been in tty_ldisc_setup() 782 retval = tty_ldisc_open(o_tty, o_tty->ldisc); in tty_ldisc_setup() 801 struct tty_struct *o_tty = tty->link; in tty_ldisc_release() local 808 tty_ldisc_lock_pair(tty, o_tty); in tty_ldisc_release() 810 if (o_tty) in tty_ldisc_release() [all...] |
H A D | tty_io.c | 1640 struct tty_struct *o_tty = tty->link; in tty_release_checks() local 1642 if (o_tty != tty->driver->other->ttys[idx]) { in tty_release_checks() 1647 if (o_tty->link != tty) { in tty_release_checks() 1648 tty_debug(tty, "bad link = %p\n", o_tty->link); in tty_release_checks() 1737 struct tty_struct *o_tty = NULL; in tty_release() local 1754 o_tty = tty->link; in tty_release() 1767 tty_lock_slave(o_tty); in tty_release() 1776 * The test for the o_tty closing is necessary, since the master and in tty_release() 1795 if (o_tty && o_tty in tty_release() [all...] |
H A D | tty.h | 94 int tty_ldisc_setup(struct tty_struct *tty, struct tty_struct *o_tty);
|
/kernel/linux/linux-6.6/drivers/tty/ |
H A D | pty.c | 362 struct tty_struct *o_tty; in pty_common_install() local 379 o_tty = alloc_tty_struct(driver->other, idx); in pty_common_install() 380 if (!o_tty) in pty_common_install() 383 tty_set_lock_subclass(o_tty); in pty_common_install() 384 lockdep_set_subclass(&o_tty->termios_rwsem, TTY_LOCK_SLAVE); in pty_common_install() 390 tty_init_termios(o_tty); in pty_common_install() 392 driver->other->ttys[idx] = o_tty; in pty_common_install() 397 memset(&o_tty->termios_locked, 0, sizeof(tty->termios_locked)); in pty_common_install() 398 o_tty->termios = driver->other->init_termios; in pty_common_install() 402 * Everything allocated ... set up the o_tty structur in pty_common_install() [all...] |
H A D | tty_ldisc.c | 731 * @o_tty: pair tty for pty/tty pairs 737 int tty_ldisc_setup(struct tty_struct *tty, struct tty_struct *o_tty) in tty_ldisc_setup() argument 744 if (o_tty) { in tty_ldisc_setup() 746 * Called without o_tty->ldisc_sem held, as o_tty has been in tty_ldisc_setup() 749 retval = tty_ldisc_open(o_tty, o_tty->ldisc); in tty_ldisc_setup() 767 struct tty_struct *o_tty = tty->link; in tty_ldisc_release() local 774 tty_ldisc_lock_pair(tty, o_tty); in tty_ldisc_release() 776 if (o_tty) in tty_ldisc_release() [all...] |
H A D | tty_io.c | 1629 struct tty_struct *o_tty = tty->link; in tty_release_checks() local 1631 if (o_tty != tty->driver->other->ttys[idx]) { in tty_release_checks() 1636 if (o_tty->link != tty) { in tty_release_checks() 1637 tty_debug(tty, "bad link = %p\n", o_tty->link); in tty_release_checks() 1725 struct tty_struct *o_tty = NULL; in tty_release() local 1742 o_tty = tty->link; in tty_release() 1755 tty_lock_slave(o_tty); in tty_release() 1764 * The test for the o_tty closing is necessary, since the master and in tty_release() 1783 if (o_tty && o_tty in tty_release() [all...] |
H A D | tty.h | 93 int tty_ldisc_setup(struct tty_struct *tty, struct tty_struct *o_tty);
|
Completed in 11 milliseconds