serdev_controller_remove(9)
π serdev_controller_remove(9)
okay bestie, so this page lives in the Kernel API Manual β it's the serdev_controller_remove page, and yes it's a whole vibe π
β¨ NAME β¨
serdev_controller_remove β remove an serdev controller π
(not me copying the grammar exactly, the original says "an serdev controller" and I'm not about to gaslight you into thinking it says "a" β we keep it fr fr)
πΈ SYNOPSIS πΈ
void serdev_controller_remove (struct serdev_controller *ctrl );
bestie it literally returns nothing (void), it just goes in and does the thing β¨
π¦ ARGUMENTS π¦
ctrlβ the controller to remove π this is the main character of the whole operation
π DESCRIPTION π
So the way that this works: you call this to remove an serdev controller. That's it, that's the job π
β οΈ but listen, this part is important and I'm not gonna let you skip it: the caller is responsible for calling serdev_controller_put to discard the allocated controller. Like, you gotta clean up after yourself, no cap. This function is not gonna do it for you π«Ά
π SEE ALSO π
Kernel file ./drivers/tty/serdev/core.c β and here's the whole friend group, go say hi π
serdev_device_add(9)serdev_device_remove(9)serdev_device_write_buf(9)serdev_device_write(9)serdev_device_alloc(9)serdev_controller_alloc(9)of_find_serdev_controller_by_node(9)serdev_acpi_get_uart_resource(9)serdev_controller_add(9)__serdev_device_driver_register(9)
and that's the whole page babe, you ate that π§β¨ sign-off time: this one hangs out in ./drivers/tty/serdev, dated October 2026, and it's all about serdev_controller_remove(9) ππ·β
π¦ 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