bus_remove_device(9)
π bus_remove_device π
okay so bestie, this page is from the Kernel API Manual, and it's all about bus_remove_device β the little cleanup icon that removes a device from the bus π
β¨
π NAME π
bus_remove_device β remove device from bus. that's the whole name, no extra lore needed π«Ά
π¦ SYNOPSIS π¦
void bus_remove_device (struct device *dev );
πΈ ARGUMENTS πΈ
devβ device to be removed. yes, astruct device *, just like the synopsis says π this is the device getting taken off the bus, periodt.
π DESCRIPTION π
okay so when bus_remove_device runs, it does this whole cleanup routine, and every single step is part of the package:
- Remove device from all interfaces. π§
- Remove symlink from bus' directory. π
- Delete device from bus's list. π
- Detach from its driver. π¦
- Drop reference taken in
bus_add_device. π«Ά
π SEE ALSO π
the whole friend group is here, no skips:
- Kernel file
./drivers/base/bus.c 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_add_driver(9)bus_remove_driver(9)bus_rescan_devices(9)device_reprobe(9)bus_register(9)bus_unregister(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)
mwah π β from ./drivers/base, October 2026, repping bus_remove_device(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