xilinx_cpm_pcie_intx_map(9)
π xilinx_cpm_pcie_intx_map β bestie's guide to hooking up INTx
ok so this is a page from the Kernel API Manual (yes, the kernel has its own manual, she's fancy) and it's all about xilinx_cpm_pcie_intx_map, which is honestly the most niche little function ever and I'm obsessed π
β¨ NAME β¨
xilinx_cpm_pcie_intx_map β Set the handler for the INTx and mark IRQ as valid π
Like, that's literally her whole job. She sets the handler for the INTx and marks the IRQ as valid. Queen behavior, no notes. π
πΈ SYNOPSIS πΈ
int xilinx_cpm_pcie_intx_map (struct irq_domain *domain , unsigned int irq , irq_hw_number_t hwirq );
It returns an int, bestie. Keep that in your pocket, we'll come back to it. π«Ά
π¦ ARGUMENTS π¦
Three little besties walk into the function:
domainβ the IRQ domain. That's her home base, her whole vibe check. πirqβ the Virtual IRQ number. The soft, abstract, "what the OS thinks it is" version. β¨hwirqβ the HW interrupt number. The real, physical, hardwired one.irq_hw_number_t, no less. π
π RETURN π
Always returns 0. Not "sometimes", not "on success" β always. She literally cannot fail. main character energy fr fr. π
π₯ SEE ALSO π₯
ok here's the little friend group, all of them live in the kernel file ./drivers/pci/controller/pcie-xilinx-cpm.c:
- struct
xilinx_cpm_variant(9) - struct
xilinx_cpm_pcie(9) xilinx_cpm_pcie_init_irq_domain(9)xilinx_cpm_pcie_init_port(9)xilinx_cpm_pcie_parse_dt(9)xilinx_cpm_pcie_probe(9)
go read their pages too, iykyk π§
ngl this one's short but she still ate. tiny function, zero drama, always returns 0. periodt. π
and that's the whole page, bestie π this came out of ./drivers/pci/controller, dated October 2026, and it's living over in the Kernel API Manual section β mwah, go forth and map those interrupts πβ¨π
π¦ 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