nwl_pcie_map_bus(9)
π nwl_pcie_map_bus β get configuration base β¨
okay so bestie, welcome to nwl_pcie_map_bus(9), straight out of the Kernel API Manual π this is the little function that hands you back the configuration base β like, it knows exactly where in config space you need to be poking around, and it tells you. no cap, that's the whole vibe. π
β¨ SYNOPSIS β¨
void __iomem * nwl_pcie_map_bus (struct pci_bus *bus , unsigned int
devfn , int where );
that's the whole signature, typed out character for character because we do NOT play fast and loose with function prototypes in this house π«Ά
πΈ ARGUMENTS πΈ
busβ the bus structure of the current bus π like, the actual bus you're working on rn. main character energy.devfnβ device/function π₯ yep, both of them, squished into one argument. iconic.whereβ the offset from base π how far you're stepping away from the start. lowkey important.
π RETURN π
it returns the base address of the configuration space that needs to be accessed π« that's it, that's the whole gift. void __iomem * and everything, so you know it's a real memory-mapped situation π
ngl bestie, if you were hoping for an error code or something β nope. it just gives you the base address. periodt.
π¦ SEE ALSO π¦
- Kernel file
./drivers/pci/controller/pcie-xilinx-nwl.cβ β go read the source, iykyk, that's where the real lore lives π§
okay that's the page!! and before you go β this little masterpiece came from ./drivers/pci/controller, dated October 2026, and it goes by nwl_pcie_map_bus(9) π mwah, love u, go map some buses bestie πππΈ
π¦ 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