bus_remove_device(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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, a struct 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:

mwah πŸ’‹ β€” from ./drivers/base, October 2026, repping bus_remove_device(9) πŸŽ€βœ¨

πŸ“¦ where this page comes from