Home
last modified time | relevance | path

Searched refs:new_ldisc (Results 1 – 2 of 2) sorted by relevance

/Linux-v6.6/drivers/tty/
Dtty_ldisc.c58 int tty_register_ldisc(struct tty_ldisc_ops *new_ldisc) in tty_register_ldisc() argument
62 if (new_ldisc->num < N_TTY || new_ldisc->num >= NR_LDISCS) in tty_register_ldisc()
66 tty_ldiscs[new_ldisc->num] = new_ldisc; in tty_register_ldisc()
522 struct tty_ldisc *old_ldisc, *new_ldisc; in tty_set_ldisc() local
524 new_ldisc = tty_ldisc_get(tty, disc); in tty_set_ldisc()
525 if (IS_ERR(new_ldisc)) in tty_set_ldisc()
526 return PTR_ERR(new_ldisc); in tty_set_ldisc()
554 tty->ldisc = new_ldisc; in tty_set_ldisc()
557 retval = tty_ldisc_open(tty, new_ldisc); in tty_set_ldisc()
560 tty_ldisc_put(new_ldisc); in tty_set_ldisc()
[all …]
/Linux-v6.6/include/linux/
Dtty_ldisc.h285 int tty_register_ldisc(struct tty_ldisc_ops *new_ldisc);