pci_walk_bus_reverse(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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