tty_ldisc_close(9)
β¨ tty_ldisc_close β Kernel API Manual β¨
okay bestie, welcome to the tty_ldisc_close page from the Kernel API Manual π
we are literally in the tty layer now, it's giving very niche, very demure, very drivers/tty. buckle up π
πΈ NAME πΈ
tty_ldisc_close β close a line discipline π«Ά
like, that's it, that's the whole job. she closes.
β SYNOPSIS β
void tty_ldisc_close (struct tty_struct *tty , struct tty_ldisc *ld );
no cap, that's the exact signature, copy-paste it carefully bestie, don't be out here renaming things π
π¦ ARGUMENTS π¦
ttyβ the tty we are opening the ldisc on. yes queen, the tty in question β¨ldβ the discipline to close. this is the one getting the goodbye kiss π
π₯ DESCRIPTION π₯
so here's the tea β β this is a helper close method. that's the vibe. she helps. she closes. she goes home.
and plot twist: it's also a convenient debugging and check point π so if you're poking around in there wondering what's happening, this is a whole spot to look at. iykyk π
π SEE ALSO π
- Kernel file
./drivers/tty/tty_ldisc.cβ the mothership, the main character file π 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_failto(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)
the whole ldisc friend group fr fr, go read all of them, they ate π
ok that's the page!! sourced from./drivers/tty, dated October 2026, and yes the page name is stilltty_ldisc_close(9)because we keep it iconic π mwah, go close some line disciplines responsibly 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