tty_buffer_free_all(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME: tty_buffer_free_all(9) 🌸

okay bestie, this one is from the Kernel API Manual, and the whole vibe is literally β€œfree buffers used by a tty.” πŸ’…

✨ SYNOPSIS ✨

void tty_buffer_free_all (struct tty_port *port );

πŸŽ€ ARGUMENTS πŸŽ€

  • port β€” the tty port you’re freeing from. that’s the one, no cap 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

This function removes all the buffers pending on a tty β€” whether they’re queued with data or just chilling in the free ring. 🧹✨

It must be called when the tty is no longer in use. like, do not come for this function while the tty is still main-character-ing, okay? 😭

πŸ’– SEE ALSO πŸ’–

Kernel file ./drivers/tty/tty_buffer.c is the spot, and here’s the whole squad:


mwah πŸ’‹ signed off from the ./drivers/tty source/version, dated October 2026 β€” catch you in the Kernel API Manual, bestie πŸŒˆπŸ‘‘

πŸ“¦ where this page comes from