stmmac_pltfr_get_irq_array(9)
β¨ stmmac_pltfr_get_irq_array(9) β¨
okay so bestie, welcome to the Kernel API Manual π
today we're looking at stmmac_pltfr_get_irq_array β like, the whole thing, fr fr, no skimming.
πΈ NAME πΈ
stmmac_pltfr_get_irq_array β reads the per-channel IRQs off a platform device. That's it, that's the vibe π
π¦ SYNOPSIS π¦
int stmmac_pltfr_get_irq_array (struct platform_device *pdev , const
char *fmt , int *irqs , size_t num );
literally the whole signature, copied exactly, i do not play about code π«Ά
π ARGUMENTS π
pdevβ the platform device. the main character of this whole operation πfmtβ the IRQ name format string, like for example"tx-queue-d". yes that's the actual example, i'm not making it up β¨irqsβ the array where the IRQ numbers get stored. the little home for the numbers πnumβ the maximum number of IRQs to read. a hard cap, no overachieving allowed π
π₯ RETURN π₯
0on success β slay π-EPROBE_DEFERif the IRQ is deferred β not a fail, just a "not yet bestie" situation β³-EINVALon error β something's off, check ur inputs π
ok important detail, don't miss this one: missing IRQs are set to 0 and iteration stops at the first missing IRQ. like it doesn't skip ahead and keep looking, it just stops there. periodt. π
π SEE ALSO π
the kernel file lives right here, iconic location:
Kernel file ./drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
and here's the whole friend group, all of them, not skipping a single one π«Ά:
dwmac1000_validate_mcast_bins(9), dwmac1000_validate_ucast_entries(9), stmmac_axi_setup(9), stmmac_mtl_setup(9), stmmac_of_get_mdio(9), stmmac_mdio_setup(9), stmmac_of_get_mac_mode(9), stmmac_probe_config_dt(9), devm_stmmac_probe_config_dt(9), stmmac_pltfr_init(9), stmmac_pltfr_exit(9), stmmac_pltfr_probe(9), devm_stmmac_pltfr_probe(9), stmmac_pltfr_remove(9)
go read them, iykyk π¦
cute lil sign-off: this page came from./drivers/net/ethernet/stmicro...and it's dated October 2026 β and the page itself isstmmac_pltfr_get_irq_array(9), in case u forgot already π mwah, go write some good drivers 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