__irq_alloc_...eneric_chips(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __irq_alloc_...eneric_chips(9) β€” like, the kernel API manual, bestie ✨

okay so real talk, we're in the Kernel API Manual today and this one page is about one (1) extremely specific function whose name got truncated in the header because even the typesetter gave up 😭 β€” the actual function is __irq_alloc_domain_generic_chips, and she is that girl. buckle up πŸŽ€


✨ NAME ✨

__irq_alloc_domain_generic_chips β€” allocate generic chips for an irq domain 🧚

like, you're literally handing out chips to an irq domain. that's the whole vibe.


🌸 SYNOPSIS 🌸

int __irq_alloc_domain_generic_chips (struct irq_domain *d , int
irqs_per_chip , int num_ct , const char *name , irq_flow_handler_t
handler , unsigned int clr , unsigned int set , enum irq_gc_flags
gcflags );

she takes eight arguments and returns an int, no cap πŸ’€ copy it exactly, don't get creative with it.


πŸ’– ARGUMENTS πŸ’–

  • d β€” the irq domain you're allocating chips for 🫢 like, whose chips are these? hers. these ones.
  • irqs_per_chip β€” how many interrupts each chip handles. and listen: max 32, that's a hard ceiling, do not test her πŸ™ˆ
  • num_ct β€” the number of irq_chip_type instances associated with this. yes, that's the whole description, she's a woman of few words πŸ’…
  • name β€” the name of the irq chip. name her something iconic πŸ‘‘
  • handler β€” the default flow handler associated with these chips ⭐
  • clr β€” the IRQ_* bits to clear in the mapping function 🧹
  • set β€” the IRQ_* bits to set in the mapping function βœ…
  • gcflags β€” generic chip specific setup flags. that's enum irq_gc_flags energy, iykyk 🌈
ngl bestie, irqs_per_chip max is 32 and that's not a suggestion, that's the law πŸ“œ

πŸ¦‹ SEE ALSO πŸ¦‹

the kernel file is literally ./kernel/irq/generic-chip.c β€” that's the source of truth, go read her πŸ“–

and then the whole friend group, in order, because we don't leave anyone out πŸ’œ


okay that's the whole page, you ate that πŸ“ go forth and allocate responsibly, mwah πŸ’‹

β€” xoxo, your girl from ./kernel/irq, October 2026, signing off on __irq_alloc_...eneric_chips(9) πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from