tty_ldisc_failto(9)
π tty_ldisc_failto π
okay so bestie, welcome to the Kernel API Manual β¨ β today's main character is tty_ldisc_failto(9), and honestly? she's a little rescue worker and she ate. π«Ά
πΈ NAME πΈ
tty_ldisc_failto β the helper for ldisc failback π
(that's it. that's the whole name section. short, sweet, iconic.)
β SYNOPSIS β
int tty_ldisc_failto (struct tty_struct *tty , int ld );
literally just vibes and a return type, no cap π
π¦ ARGUMENTS π¦
ttyβ the tty we're gonna open the ldisc on π₯οΈβ¨ldβ the ldisc we are trying to fail back to, i.e. the safe place we're running home to ππ
π DESCRIPTION π
okay so picture this: you're a tty, you tried to switch ldiscs, it did NOT go well, and now you're sitting there with nothing attached which is lowkey terrifying π. This helper's whole job is to try and recover a tty when switching back to the old ldisc fails and we need something attached. She's the friend who shows up with a hoodie and a snack when your night goes sideways fr fr π§π
not me being obsessed with a recovery function but here we are π
π₯ SEE ALSO π₯
- Kernel file
./drivers/tty/tty_ldisc.cβ the whole ldisc friend group lives here π‘ 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_restore(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)
like, the entire ldisc squad. go say hi to all of them, they're all slay ππ
and that's the page bestie!! π this little number comes to you straight from ./drivers/tty, dated October 2026, and it's tty_ldisc_failto(9) forever and always πβ¨ periodt.
π¦ 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