irq_get_irqchip_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’œ irq_get_irqchip_state(9) β€” Kernel API Manual ✨

okay so bestie, welcome to the Kernel API Manual, this is the page for irq_get_irqchip_state(9) and it's lowkey one of those tiny functions that does exactly one thing and does it slay πŸ’…


🌸 NAME 🌸

irq_get_irqchip_state β€” returns the irqchip state of a interrupt. fr fr that's the whole job πŸŽ€


✨ SYNOPSIS ✨

int irq_get_irqchip_state (unsigned int irq , enum irqchip_irq_state
which , bool *state );

like, three args in, one int out, no cap 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • irq β€” the interrupt line that is forwarded to a VM. that's your main character interrupt πŸ‘‘
  • which β€” one of the IRQCHIP_STATE_* values β€” specifically whichever one the caller wants to know about πŸ‘€
  • state β€” a pointer to a bool, and this is where the state gets stored. put it somewhere valid bestie, it's writing through it πŸ’–

πŸ”₯ DESCRIPTION πŸ”₯

so what this call does is it snapshots the internal irqchip state of an interrupt β€” like a little screenshot of the moment πŸ“Έ β€” and then returns into state the bit that corresponds to stage which.

⚠️ important vibe check: this function should be called with preemption disabled if the interrupt controller has per-cpu registers. do not skip that. that's not a suggestion, that's the rule 😭

🌈 SEE ALSO 🌈

the kernel file ./kernel/irq/manage.c and like... a whole friend group of functions, honestly, they all travel together πŸ§šβ€β™€οΈ


that's the whole page, you ate it πŸ’… ok bye, this one's filed under ./kernel/irq and it's dated October 2026 β€” iconic of it honestly πŸŽ€πŸ’–βœ¨

πŸ“¦ where this page comes from