pci_walk_bus_reverse(9)
π pci_walk_bus_reverse(9) β like, the Kernel API Manual, but make it make sense π
okay so bestie, picture this: you're deep in the Kernel API Manual and you need to walk a PCI bus, but backwards. Not forwards. Backwards. And this little function? She's the one. No cap.
β¨ SYNOPSIS β¨
void pci_walk_bus_reverse (struct pci_bus *top , int (*cb)(struct
pci_dev *, void *) , void *userdata );
π ARGUMENTS π
topβ the bus whose devices should be walked. Like, this is the main character of the whole operation πcbβ the callback that gets called for each device found. Every single one, bestie.userdataβ an arbitrary pointer that gets passed to the callback. It's giving "bring your own vibes" β¨
πΈ DESCRIPTION πΈ
Same semantics as pci_walk_bus, but β and this is the plot twist β it walks the bus in reverse order. That's it. That's the function. She's iconic for exactly one reason and she owns it. π¦
π SEE ALSO π
Kernel file ./drivers/pci/bus.c, plus these absolute legends:
k that's the whole page, bestie π«Ά source is ./drivers/pci, dated October 2026, and yes it's still the Kernel API Manual. go walk some buses in reverse, periodt ππ₯
π¦ 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