ti_sci_intr_...c_parent_irq(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 ti_sci_intr_alloc_parent_irq β€” bestie edition 🌸

okay so this is from the Kernel API Manual, page ti_sci_intr_...c_parent_irq(9), and honestly? it's a little baddie. let's get into it πŸ’…


✨ NAME ✨

ti_sci_intr_alloc_parent_irq β€” Allocate parent IRQ. that's it. that's the whole vibe. it goes and gets you a parent IRQ πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

int ti_sci_intr_alloc_parent_irq (struct irq_domain *domain , unsigned
int virq , u32 hwirq , u32 hwirq_type );

like, literally just call it with those four things and it hands you back an int. iconic signature ngl ✨


πŸ’– ARGUMENTS πŸ’–

  • domain β€” Pointer to the interrupt router IRQ domain. this is the main character domain, the interrupt router one, and you're passing a pointer to it 🫢
  • virq β€” Corresponding Linux virtual IRQ number. yes bestie, the virtual one, the Linux-side number ✨
  • hwirq β€” Corresponding hwirq for the IRQ within this IRQ domain. the hardware number, scoped to this IRQ domain, no cap πŸ”₯
  • hwirq_type β€” Corresponding hwirq trigger type for the IRQ within this IRQ domain. also scoped to this domain β€” it's the trigger type, so like, how it fires πŸ’«

🌈 DESCRIPTION 🌈

so what does it actually do?? it returns the intr output irq if all went well πŸ’– β€” and if it didn't go well, you get the appropriate error pointer instead 😭. that's the whole deal, fr fr. good vibes or an error pointer, there is no in-between πŸ¦‹


πŸ‘‘ SEE ALSO πŸ‘‘

peep the kernel file ./drivers/irqchip/irq-ti-sci-intr.c and also these lil faves:

all the siblings, all slaying in the same file πŸ’…βœ¨


oh and before you go β€” this one's living in ./drivers/irqchip, dated October 2026, and the page is ti_sci_intr_...c_parent_irq(9). mwah, go read the source bestie πŸ“πŸ’œ
πŸ“¦ where this page comes from