n_hdlc_tty_close(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… n_hdlc_tty_close β€” line discipline close πŸŽ€

okay so this is a page from the Kernel API Manual, bestie, and it's about one very specific little function that does exactly one very specific little job. no cap, it's short, but we're gonna treat it with the respect it deserves. ✨


🌸 NAME 🌸

n_hdlc_tty_close β€” line discipline close. that's it. that's the whole name. she's concise, she's iconic, she doesn't waste your time. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

void n_hdlc_tty_close (struct tty_struct *tty );

literally the whole signature. returns nothing (void, so don't come looking for a return value, there isn't one, periodt), takes one pointer, and that's the vibe. 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • tty β€” pointer to tty info structure. that's the one single thing you hand her. it's a struct tty_struct *, and it's the tty info structure, and yes the original really does just say "pointer to tty info structure" so I'm not gonna sit here and invent lore about what's inside it. πŸ™ˆ

⭐ DESCRIPTION ⭐

so here's when she gets called, and there are three situations, lowkey a whole trio:

  • when the line discipline is changed to something else
  • when the tty is closed
  • or when the tty detects a hangup

that's the tea. those three moments, and she's on the scene. no extra behaviour described on this page, so I'm not gonna make any up β€” we're staying factually pure over here. πŸ’–


🧚 SEE ALSO 🧚

the whole friend group, in the exact order the manpage gave them:

go read all of them, bestie, iykyk. 🌈


real talk: this page documents when she's called and what she takes. it does not document what happens inside. so if you need the internals, that's a ./drivers/tty/n_hdlc.c field trip, not a guess from me. πŸ’€

and that's the page!! πŸ“ tiny, precious, exactly as long as it needs to be. this absolute gem came out of the ./drivers/tty source tree, straight from the Kernel API Manual, dated October 2026 β€” mwah, chef's kiss, no notes. πŸ‘‘πŸ’œ

πŸ“¦ where this page comes from