of_irq_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay so this page is of_irq_get(9), straight out of the Kernel API Manual, and it’s literally about decoding a node’s IRQ and returning it as a Linux IRQ number. bestie, that’s the whole vibe. πŸ’…βœ¨


✨ SYNOPSIS ✨

int of_irq_get (struct device_node *dev , int index );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” pointer to device tree node 🫢
  • index β€” zero-based index of the IRQ 🎯

πŸ’– RETURN πŸ’–

  • Linux IRQ number on success πŸ‘‘
  • 0 on the IRQ mapping failure 🫠
  • -EPROBE_DEFER if the IRQ domain is not yet created ⏳
  • error code in case of any other failure πŸ’€
no cap, that return list is giving β€œit depends” energy, so read it carefully before you spiral. 😭

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/of/irq.c and these iconic little references:


okay bye bestie πŸ’… this page lives under source/version ./drivers/of, dated October 2026 β€” go slay those IRQ decodes 🫢✨🌸

πŸ“¦ where this page comes from