tty_driver_kref_put(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… tty_driver_kref_put(9) πŸ’…

okay bestie, welcome to the Kernel API Manual β€” today’s main character is tty_driver_kref_put(9), and it’s short, iconic, and to the point. πŸŽ€βœ¨


πŸŽ€ NAME πŸŽ€

tty_driver_kref_put β€” drop a reference to a tty driver. that’s the whole name, slay πŸ’…

✨ SYNOPSIS ✨

void tty_driver_kref_put (struct tty_driver *driver );

🌸 ARGUMENTS 🌸

  • driver β€” the driver of which to drop the reference. literally the tty driver you’re letting go of, no cap 🫢

πŸ’– DESCRIPTION πŸ’–

The final put will destroy and free up the driver. so when the last reference goes bye-bye, the driver gets destroyed and freed β€” it’s giving last-one-out energy πŸ˜­πŸ’€

bestie, keep the β€œfinal” part in mind: this page says the final put is the one that destroys and frees up the driver. periodt.

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/tty/tty_io.c is in the SEE ALSO chat, along with this whole friend group:


signed off from source/version ./drivers/tty, dated October 2026 β€” mwah, bestie πŸ’‹βœ¨

πŸ“¦ where this page comes from