pci_find_bus(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

pci_find_bus β€” locate PCI bus from a given domain and bus number. This one lives in the Kernel API Manual, and the page itself is pci_find_bus(9), iykyk πŸ’….

πŸ¦‹ SYNOPSIS πŸ¦‹

struct pci_bus * pci_find_bus (int domain , int busnr );

πŸŽ€ ARGUMENTS πŸŽ€

  • domain β€” number of PCI domain to search. That's the domain you're looking in, bestie.
  • busnr β€” number of desired PCI bus. Yep, the bus number you actually want.

πŸ’– DESCRIPTION πŸ’–

Okay so picture this: you give it a PCI bus number and a domain number, and it goes looking for the desired PCI bus in the global list of PCI buses. If the bus is found, you get a pointer to its data structure back β€” slay. If no bus is found, it returns NULL β€” no cap, that's the no-bus answer. πŸ™ˆ

🌈 SEE ALSO 🌈

Kernel file ./drivers/pci/search.c β€” and the related function besties are:


Source/version: ./drivers/pci Β· Date: October 2026 β€” ok that's the whole page, bye bestie, this was pci_find_bus(9) πŸ’…βœ¨

πŸ“¦ where this page comes from