fwnode_irq_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… fwnode_irq_get(9) β€” Kernel API Manual

okay so bestie, we're diving into fwnode_irq_get, straight out of the Kernel API Manual ✨ and honestly? it's giving "small function, big job" energy and I'm obsessed πŸŽ€


🌸 NAME 🌸

fwnode_irq_get β€” literally just: get the IRQ directly from a fwnode πŸ’– no middleman, no cap.


✨ SYNOPSIS ✨

int fwnode_irq_get (const struct fwnode_handle *fwnode , unsigned int
       index );

that's the whole vibe check right there πŸ¦‹


πŸŽ€ ARGUMENTS πŸŽ€

  • fwnode β€” a pointer to the firmware node πŸ’« that's your main character right there
  • index β€” the zero-based index of the IRQ πŸ‘‘ so like, zero counts as the first one, don't come at me

🌈 RETURN 🌈

Linux IRQ number on success πŸ₯³πŸŽ‰ β€” and a negative errno on failure πŸ˜­πŸ’€ (yes, negative, keep that in mind when you check it, ngl).


πŸ¦‹ SEE ALSO πŸ¦‹

first up, the kernel file to go peek at: ./drivers/base/property.c β€” that's the source of truth, bestie 🫢

and now the extended friend group πŸ’œ β€” every single one of these:

like I said. the whole group chat πŸ˜­πŸ’–


anyway that's the page!! mwah πŸ’‹ this one's filed under ./drivers/base and dated October 2026 β€” so you know exactly where it lives and when it was serving looks 🌟 byeee πŸ§šβ€β™€οΈπŸ’œ

πŸ“¦ where this page comes from