pci_stop_and...e_bus_device(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, welcome to the Kernel API Manual page for pci_stop_and_remove_bus_device(9) β€” header tag pci_stop_and...e_bus_device(9), iykyk ✨ this is the one about removing a PCI device and its whole little crew.

pci_stop_and_remove_bus_device β€” remove a PCI device and any children. periodt πŸ’…

✨ SYNOPSIS ✨

void pci_stop_and_remove_bus_device (struct pci_dev *dev );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the device to remove. that's the whole argument, bestie: you point at the PCI device and this function handles the rest 🫢

πŸ’… DESCRIPTION πŸ’…

okay so this function removes a PCI device from the device lists, and it informs the drivers that the device has been removed. it also removes any subordinate buses and children in a depth-first manner β€” yes, depth-first, it goes down the tree like it's chasing the lore 😭πŸ”₯

for each device we remove, it deletes the device structure from the device lists, removes the /proc entry, and notifies userspace (/sbin/hotplug). every single device, no skipping, no shortcuts, iconic behavior honestly πŸ‘‘

🌈 SEE ALSO 🌈

  • Kernel file ./drivers/pci/remove.c β€” the source file for the lore, bestie. go peek if you're curious πŸ“–πŸ’œ

kisses and bye πŸŽ€ source/version: ./drivers/pci Β· date: October 2026 Β· page tag: pci_stop_and...e_bus_device(9) πŸ’…βœ¨

πŸ“¦ where this page comes from