xilinx_pcie_map_bus(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 inside
  • devfn β€” Device/function πŸŽ€ which device and which function on it, all smooshed into one number, iykyk
  • where β€” 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