of_irq_to_resource(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ of_irq_to_resource(9) πŸ¦‹

hii bestie, welcome to the Kernel API Manual β€” today's main character is of_irq_to_resource(9), and she is literally here to decode. no cap.

πŸ’– NAME πŸ’–

of_irq_to_resource β€” Decode a node's IRQ and return it as a resource. that's the whole vibe: IRQ in, resource out, slay.

✨ SYNOPSIS ✨

okay so the signature is literally this, character for character:

int of_irq_to_resource (struct device_node *dev , int index , struct resource *r );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” pointer to device tree node. it's giving "start here" energy, fr fr.
  • index β€” zero-based index of the irq. yes bestie, zero-based, so the first one is 0, periodt.
  • r β€” pointer to resource structure to return result into. this is where the result goes to live its best life.

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/of/irq.c β€” and here's the friend group, all iconic:


mwah πŸ’‹ this page is from source/version ./drivers/of, dated October 2026. bye bestie, go decode those IRQs πŸ’…

πŸ“¦ where this page comes from