pci_stop_and...e_bus_device(9)
π 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
- 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