tty_ldisc_restore(9)
π tty_ldisc_restore(9) β Kernel API Manual π
β¨ NAME β¨
tty_ldisc_restore β helper for tty ldisc change, bestie π
π¦ SYNOPSIS π¦
The signature is literally giving:
void tty_ldisc_restore (struct tty_struct *tty , struct tty_ldisc *old
);
π ARGUMENTS π
ttyβ the tty to recover π«Άoldβ the previous ldisc π
π DESCRIPTION π
Okay so hereβs the whole vibe: tty_ldisc_restore restores the previous line discipline or N_TTY when a line discipline change fails due to an open error. Thatβs the mission, no cap. β¨
π SEE ALSO π
Kernel file ./drivers/tty/tty_ldisc.c β and the whole friend group: tty_register_ldisc(9), tty_unregister_ldisc(9), tty_ldisc_get(9), tty_ldisc_put(9), tty_ldisc_ref_wait(9), tty_ldisc_ref(9), tty_ldisc_deref(9), tty_ldisc_flush(9), tty_set_termios_ldisc(9), tty_ldisc_open(9), tty_ldisc_close(9), tty_ldisc_failto(9), tty_set_ldisc(9), tty_ldisc_kill(9), tty_reset_termios(9), tty_ldisc_reinit(9), tty_ldisc_hangup(9), tty_ldisc_setup(9), tty_ldisc_release(9), tty_ldisc_init(9), tty_ldisc_deinit(9). π
π Cute sign-off: this page is from the Kernel API Manual, source/version ./drivers/tty, dated October 2026, and the page title is tty_ldisc_restore(9). Bye bestie! π«Ά
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms