STRUCT XILINX_PCIE(9)
π struct xilinx_pcie β PCIe port information π
Okay bestie, so this is from the Kernel API Manual and it's literally the glow-up of PCIe port info for Xilinx, no cap. Let me walk you through it like we're studying together at 2am with iced coffee π§β
β¨ SYNOPSIS β¨
Here's the whole struct, laid out exactly as-is. Don't touch, just vibe:
struct xilinx_pcie {
struct device *dev;
void __iomem *reg_base;
unsigned long msi_map[BITS_TO_LONGS(XILINX_NUM_MSI_IRQS)];
struct mutex map_lock;
struct irq_domain *msi_domain;
struct irq_domain *leg_domain;
struct list_head resources;
};
π Members (the main characters) π
devβ Device pointer. This is the device's whole identity, its main character energy πreg_baseβ IO Mapped Register Base. Where the registers live, mapped into memory fr.msi_mapβ Bitmap of allocated MSIs. A literal bitmap tracking which MSIs are taken π₯map_lockβ Mutex protecting the MSI allocation. Bestie this is the lock that keeps things from getting messy β if two people grab the MSI map at once it's giving chaos, and this mutex says not today πmsi_domainβ MSI IRQ domain pointer. Points at the MSI interrupt domain, periodt.leg_domainβ Legacy IRQ domain pointer. Same vibe but for legacy IRQs, iconic.resourcesβ Bus Resources. Holds all the bus resource info, like the struct's little tote bag of stuff π
π SEE ALSO π
- Kernel file
./drivers/pci/controller/pcie-xilinx.c xilinx_pcie_clear_err_interrupts(9)xilinx_pcie_valid_device(9)xilinx_pcie_map_bus(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)
All of these are in ./drivers/pci/controller, iykyk π¦
Okay so like, if you're messing with the MSI map without holding map_lock, bestie I'm gonna need you to stop. That's the whole reason the mutex is there. It's protecting the allocation, fr fr π«Ά
That's the whole thing, no skips, no cuts, every detail retained π Slay.
October 2026 Β· ./drivers/pci/controller Β· struct xilinx_pcie(9) β and that's the official sign-off, 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