of_create_pci_dev(9)
π 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:
get_int_prop(9)of_pci_parse_addrs(9)of_scan_pci_bridge(9)__of_scan_bus(9)of_scan_bus(9)of_rescan_bus(9)
mwah π this cutie lives in ./arch/powerpc/kernel, dated October 2026. 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