irq_domain_xlate_onetwocell(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… irq_domain_xlate_onetwocell(9) β€” like, the whole vibe

okay so bestie, welcome to the Kernel API Manual ✨ we're literally looking at irq_domain_xlate_onetwocell(9) today and honestly? she's a niche little queen but she serves πŸŽ€


🌸 NAME 🌸

irq_domain_xlate_onetwocell β€” the generic xlate for one-or-two cell bindings, no cap πŸ’«


✨ SYNOPSIS ✨

int irq_domain_xlate_onetwocell (struct irq_domain *d , struct
device_node *ctrlr , const u32 *intspec , unsigned int intsize ,
unsigned long *out_hwirq , unsigned int *out_type );

like, that's the whole signature β€” she takes six things and hands you back an int 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • d β€” the interrupt domain that's involved in the translation. your main character domain fr πŸ’…
  • ctrlr β€” the device tree node for the device whose interrupt is being translated. iykyk 🌈
  • intspec β€” the interrupt specifier data from the device tree. the raw tea β˜•
  • intsize β€” the number of entries in intspec. like, how many cells we're working with 🧚
  • out_hwirq β€” pointer to storage for the hardware interrupt number. this is where the hwirq goes to live πŸŽ€
  • out_type β€” pointer to storage for the interrupt type. the vibe check destination πŸ’–

πŸ”₯ DESCRIPTION πŸ”₯

so this is a Device Tree IRQ specifier translation function πŸ“Ÿβœ¨ and she works with either one or two cell bindings β€” emphasis on either, bestie β€” where the cell values map directly to the hwirq number and the linux irq flags. like, direct. no middleman. no drama. periodt πŸ’€


⭐ NOTE ⭐

🚨 ok this is the important part, listen up: don't use this function unless your interrupt controller explicitly supports both one and two cell bindings. For the majority of controllers, the _onecell or _twocell variants above should be used. like, don't be out here using the flexible one just because she's flexible πŸ™ˆπŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./kernel/irq/irqdomain.c β€” and literally the whole extended friend group 🫢:


and that's the page, bestie πŸ’œ this one came from ./kernel/irq, dated October 2026, and she's filed under irq_domain_xlate_onetwocell(9) β€” slay, go translate some interrupts responsibly πŸŒΈβœ¨πŸŽ€

πŸ“¦ where this page comes from