stmmac_pltfr_get_irq_array(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 πŸ”₯

  • 0 on success β€” slay πŸ’…
  • -EPROBE_DEFER if the IRQ is deferred β€” not a fail, just a "not yet bestie" situation ⏳
  • -EINVAL on 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 is stmmac_pltfr_get_irq_array(9), in case u forgot already πŸ’œ mwah, go write some good drivers bestie 🧚⭐
πŸ“¦ where this page comes from