bus_unregister(9)
π NAME π
bus_unregister β remove a bus from the system, bestie. This is the bus_unregister(9) page from the Kernel API Manual, and we are gonna get you fluent in it. No cap. π
β¨ SYNOPSIS β¨
void bus_unregister (const struct bus_type *bus );
πΈ ARGUMENTS πΈ
busβ the bus. That's the argument. Just the bus. π«Ά
π DESCRIPTION π
okay so here's the tea: bus_unregister unregisters the child subsystems and the bus itself. Finally, we call bus_put to release the refcount. That's the whole sequence, and it's lowkey iconic. πβ¨
π¦ SEE ALSO π¦
The kernel file ./drivers/base/bus.c is the home base, and the related crew is:
bus_to_subsys(9)bus_for_each_dev(9)bus_find_device(9)bus_for_each_drv(9)bus_add_device(9)bus_probe_device(9)bus_remove_device(9)bus_add_driver(9)bus_remove_driver(9)bus_rescan_devices(9)device_reprobe(9)bus_register(9)subsys_dev_iter_init(9)subsys_dev_iter_next(9)subsys_dev_iter_exit(9)subsys_system_register(9)subsys_virtual_register(9)driver_find(9)bus_get_dev_root(9)
xoxo bestie, from the ./drivers/base source, October 2026, on the bus_unregister(9) page πβ¨
π¦ 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