pci_hp_remove_devices(9)
π pci_hp_remove_devices(9) β a Kernel API Manual moment
okay so bestie, we're in the Kernel API Manual today and this one is literally about yeeting every PCI device under a bus. no cap. it's giving cleanup era. π§Ήβ¨
β¨ NAME β¨
pci_hp_remove_devices β remove all devices under this bus
like, all of them. every single one. periodt. π
π SYNOPSIS π
void pci_hp_remove_devices (struct pci_bus *bus );
note the void β this function returns nothing, it just does the thing and leaves. main character energy, honestly. π«Ά
πΈ ARGUMENTS πΈ
busβ the indicated PCI bus π
that's it. that's the whole argument list. one (1) bus. she's lowkey simple like that.
π¦ DESCRIPTION π¦
okay so here's the vibe: this function removes all of the PCI devices under this bus β and not just from one place, bestie, from both:
- the linux pci device tree π
- the powerpc EEH address cache π₯
two whole places. she's thorough. not me being obsessed with a cleanup function but here we are. π
β SEE ALSO β
- Kernel file
./arch/powerpc/kernel/pci-hotplug.cβ that's where she lives, iykyk π pcibios_release_device(9)π«Άpci_hp_add_devices(9)β yes, the add counterpart, they're a matching set fr fr π
π reminder bestie: this is the remove one. if you were looking for the add one, that's pci_hp_add_devices(9) up there in SEE ALSO. don't mix them up, bestie, i'm begging π
and that's the page!! π this icon was brought to you by the fine folks at ./arch/powerpc/kernel, dated October 2026, and yes the header said pci_hp_remove_devices(9) three times because manpages love a triple threat. slay. π
β¨πΈ
π¦ 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