of_create_pci_dev(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, welcome to the Kernel API Manual ✨ this entry is of_create_pci_dev(9), and it's literally the move where, given a device tree node on a pci bus, it creates a pci_dev. slay πŸ’…

✨ SYNOPSIS ✨

here's the exact vibe, no cap:

struct pci_dev * of_create_pci_dev (struct device_node *node , struct pci_bus *bus , int devfn );

πŸŽ€ ARGUMENTS πŸŽ€

  • node β€” device tree node pointer. just the node pointer, bestie 🌳
  • bus β€” the bus the device is sitting on. yes, that bus 🚌
  • devfn β€” PCI function number, extracted from device tree by caller. the caller already did the little treasure hunt πŸ—ΊοΈ

🌈 SEE ALSO 🌈

go peek at the kernel file ./arch/powerpc/kernel/pci_of_scan.c and these absolute icons:


mwah πŸ’‹ this cutie lives in ./arch/powerpc/kernel, dated October 2026. periodt 🫢

πŸ“¦ where this page comes from