pci_walk_bus(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, this is the manual page for pci_walk_bus(9) in the Kernel API Manual β€” it's literally about walking devices on/under a bus and calling a callback. πŸ¦‹ no cap.

✨ SYNOPSIS ✨

       void pci_walk_bus (struct pci_bus *top , int (*cb)(struct pci_dev *,
       void *) , void *userdata );

πŸŽ€ ARGUMENTS πŸŽ€

  • top β€” the bus whose devices should be walked. πŸ‘‘
  • cb β€” the callback to be called for each device found. πŸ’…
  • userdata β€” an arbitrary pointer to be passed to the callback. 🫢

🌸 DESCRIPTION 🌸

So we walk the given bus, including any bridged devices on buses under this bus, and we call the provided callback on each device found. ✨

We check the return of cb each time. If it returns anything other than 0, we break out. πŸ’€ that's the whole rule, fr fr.

🌈 SEE ALSO 🌈


mwah πŸ’‹ this page lives in ./drivers/pci, stamped October 2026, and it's pci_walk_bus(9) β€” bye bestie! πŸŽ€

πŸ“¦ where this page comes from