tty_port_destroy(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

tty_port_destroy(9) πŸ’…

okay bestie, welcome to the Kernel API Manual β€” today’s main character is tty_port_destroy, and it’s literally the cleanup era we all need. ✨


🌸 NAME 🌸

tty_port_destroy β€” destroy inited port πŸŽ€

✨ SYNOPSIS ✨

void tty_port_destroy (struct tty_port *port );

πŸŽ€ ARGUMENTS πŸŽ€

  • port β€” the tty port to be destroyed. yep, that’s the one getting its goodbye moment, bestie πŸ’€

πŸ’– DESCRIPTION πŸ’–

so here’s the tea: when a port was initialized using tty_port_init, one has to destroy the port by this function. no cap, that’s the rule. 🫢

you can do it either indirectly by using tty_port refcounting (tty_port_put) or directly if refcounting is not used. pick your lane, but the port still needs its destroy moment. periodt. πŸ’…

πŸ¦‹ SEE ALSO πŸ¦‹


mwah πŸ’‹ signing off from ./drivers/tty, October 2026 edition β€” tty_port_destroy(9) said what it said. πŸ’œ

πŸ“¦ where this page comes from