tty_ldisc_deref(9)
π tty_ldisc_deref β kernel API manual, bestie edition β¨
okay so this is tty_ldisc_deref from the kernel API manual, and honestly? she's a short one but she's important, so pay attention π«Ά
πΈ NAME πΈ
tty_ldisc_deref β free a tty ldisc reference π
like, you borrowed a reference, now give it back. be a good citizen. return what you borrowed, periodt.
β¨ SYNOPSIS β¨
void tty_ldisc_deref (struct tty_ldisc *ld );
that's it. that's the whole signature. no cap, she's tiny π
π¦ ARGUMENTS π¦
ldβ the reference you're freeing up π«Ά hand it over, bestie.
π DESCRIPTION π
so here's the vibe: this function undoes the effect of tty_ldisc_ref or tty_ldisc_ref_wait π
like, you know how those two hand you a reference? yeah, this is the one that hands it back. it's giving balance. it's giving cleanup era. π
and the iconic part? it may be called in IRQ context β‘ literally no sleeping required, she's built different. interrupt-safe queen π
π₯ SEE ALSO π₯
kernel file ./drivers/tty/tty_ldisc.c β that's where the magic lives, iykyk π§
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_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_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, that's the whole ldisc friend group π go read them, they're all slaying in their own way β
ok final note bestie: this page lives in./drivers/tty, dated October 2026, and it's filed undertty_ldisc_deref(9)π mwah, go free those references responsibly ππ¦β¨
π¦ 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