tty_port_destroy(9)
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 π¦
- Kernel file
./drivers/tty/tty_port.c tty_port_init(9)tty_port_link_wq(9)tty_port_link_device(9)tty_port_register_device(9)tty_port_register_device_attr(9)tty_port_register_device_attr_serdev(9)tty_port_unregister_device(9)tty_port_put(9)tty_port_tty_get(9)tty_port_tty_set(9)tty_port_shutdown(9)tty_port_hangup(9)tty_port_tty_hangup(9)tty_port_tty_vhangup(9)tty_port_tty_wakeup(9)tty_port_carrier_raised(9)tty_port_raise_dtr_rts(9)tty_port_lower_dtr_rts(9)tty_port_block_til_ready(9)tty_port_close_start(9)tty_port_close_end(9)tty_port_close(9)tty_port_install(9)tty_port_open(9)
mwah π signing off from ./drivers/tty, October 2026 edition β tty_port_destroy(9) said what it said. π
π¦ 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