tty_ldisc_kill(9)
π tty_ldisc_kill(9) β Kernel API Manual, bestie edition
okay so we're in the kernel API manual (tty_ldisc_kill(9)) and today's main character is a little function that says goodbye to an ldisc. slay.
β¨ NAME β¨
tty_ldisc_kill β teardown ldisc. that's it, that's the whole vibe. it kills the ldisc. respectfully. π
πΈ SYNOPSIS πΈ
void tty_ldisc_kill (struct tty_struct *tty );
literally just one (1) tty pointer going in, nothing coming out. void, no cap. π«Ά
π¦ ARGUMENTS π¦
ttyβ the tty being released. like, it's on its way out, we're doing the last little closure ritual. goodbye bestie π₯²
π DESCRIPTION π
okay so here's the tea π΅ β tty_ldisc_kill does the final close of the ldisc, and then it resets tty->ldisc. that's the whole thing. final close, reset, done, periodt. it's giving last one out turn off the lights energy. β¨
ngl it's a tiny function but it's iconic in its own quiet way π
π₯ SEE ALSO π₯
so if you're the type who falls down a rabbit hole (same, honestly π), the source of truth lives in the kernel file ./drivers/tty/tty_ldisc.c, and the whole ldisc friend group is right 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_failto(9)tty_ldisc_restore(9)tty_set_ldisc(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 whole squad showed up to the function name drop π iykyk
one last thing before you go π β this page comes to you from ./drivers/tty, dated October 2026. screenshot it, frame it, put it on your wall. mwah πβ¨
π¦ 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