tty_port_unregister_device(9)
π tty_port_unregister_device(9) β NAME
okay so bestie, welcome to the Kernel API Manual, section 9, and this little icon is literally called tty_port_unregister_device β it deregisters a tty or serdev device π
Like, it's the breakup function. We registered, now we un-register. Closure, but in kernel land. πβ¨
β¨ SYNOPSIS β¨
void tty_port_unregister_device (struct tty_port *port , struct
tty_driver *driver , unsigned index );
yep that's it, that's the whole vibe check β no cap π
π«Ά ARGUMENTS π«Ά
portβ thetty_portof the device, aka the main character of this whole situation π¦driverβ thetty_driverfor this device, its ride-or-die πindexβ the index of the tty, the little number that tells you which one π
πΈ DESCRIPTION πΈ
so ngl, here's the tea: if a tty or serdev device got registered with a call to tty_port_register_device_serdev, then this function must be called when the device is gone. periodt. π
not me emphasizing that β it's a must, not a "whenever you feel like it" π take it seriously bestie, the device is gone, you gotta clean up after it π§Ήβ¨
π SEE ALSO π
the kernel file lives at ./drivers/tty/tty_port.c and here's the whole friend group, all of them, no one left out π«Άπ:
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_destroy(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)
sign-off time πβ¨
this diva came to you from ./drivers/tty, dated October 2026, and it's the tty_port_unregister_device(9) era π go forth and unregister responsibly, ily, bye π¦π
π¦ 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