xilinx_pcie_map_bus(9)
β¨ xilinx_pcie_map_bus(9) β¨
okay so bestie, welcome to the Kernel API Manual π this one's a tiny little function from the PCI controller corner of the kernel and honestly it's giving "small but crucial" β no cap. Let's get into it π
π NAME π
xilinx_pcie_map_bus β get yourself that configuration base, periodt π
π¦ SYNOPSIS π¦
void __iomem * xilinx_pcie_map_bus (struct pci_bus *bus , unsigned int
devfn , int where );
look at her go π so clean, so simple, she takes three things and hands you back a pointer. main character energy fr fr β¨
πΈ ARGUMENTS πΈ
busβ the PCI Bus structure π like, the whole bus bestie, the context you're working insidedevfnβ Device/function π which device and which function on it, all smooshed into one number, iykykwhereβ Offset from base π how far into it you're poking, measured from the base
π RETURN π
She hands you back the base address of the configuration space that needs to be accessed π« that's the vibe check result β the address you need, no more no less π«Ά
π SEE ALSO π
lowkey the whole squad is here, go read them all π
- Kernel file
./drivers/pci/controller/pcie-xilinx.c - struct
xilinx_pcie(9) xilinx_pcie_clear_err_interrupts(9)xilinx_pcie_valid_device(9)xilinx_pcie_intx_map(9)xilinx_pcie_intr_handler(9)xilinx_pcie_init_irq_domain(9)xilinx_pcie_init_port(9)xilinx_pcie_parse_dt(9)xilinx_pcie_probe(9)
ok that's the whole page bestie π«Ά go forth and map some buses, you're gonna slay π β¨
and that's a wrap on this little lore drop from ./drivers/pci/controller β October 2026 edition, mwah ππ
π¦ 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