rio_device_remove(9)
π rio_device_remove(9) β the Kernel API Manual, bestie edition π
okay so picture this: it's a 9 page from the Kernel API Manual, the star of the show is rio_device_remove, and she's here to tell you how a RIO device gets yeeted out of the system. no cap, that's the whole vibe. π¦
β¨ NAME β¨
rio_device_remove β the girl whose whole job is removing a RIO device from the system. that's it, that's the function. π«Ά
πΈ SYNOPSIS πΈ
void rio_device_remove (struct device *dev );
literally just the one line, she's lowkey minimalist like that. β
π ARGUMENTS π
devβ the RIO device structure to match against. yes bestie, match against, that's the wording, i don't make the rules π
π₯ DESCRIPTION π₯
so here's the tea β β rio_device_remove removes a RIO device from the system. iconic behavior, no notes.
and if that device has an associated driver? π then she runs the driver remove method for it. like, she's not gonna leave the driver hanging, that would be so rude.
then β and this is the part where you go "oh periodt" β she updates the reference count. that's the flow, in order, and she ate:
- remove the RIO device from the system
- if it has an associated driver, run the driver remove method
- update the reference count
that's the whole function. short, sweet, main character energy. π
π SEE ALSO π
- Kernel file
./drivers/rapidio/rio-driver.c rio_match_device(9)rio_dev_get(9)rio_dev_put(9)rio_device_probe(9)rio_register_driver(9)rio_unregister_driver(9)rio_match_bus(9)rio_bus_init(9)
go read those too, iykyk π§π
and that's a wrap, bestie π this page lives over in ./drivers/rapidio, dated October 2026, and she slayed every single line of it. mwah πβ¨
π¦ 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