irq_get_irqchip_state(9)
π 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 theIRQCHIP_STATE_*values β specifically whichever one the caller wants to know about πstateβ a pointer to abool, 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 π§ββοΈ
synchronize_hardirq(9)synchronize_irq(9)irq_can_set_affinity(9)irq_can_set_affinity_usr(9)irq_set_thread_affinity(9)irq_affinity_schedule_notify_work(9)irq_update_affinity_desc(9)irq_set_affinity(9)irq_force_affinity(9)irq_set_affinity_notifier(9)irq_set_vcpu_affinity(9)disable_irq_nosync(9)disable_irq(9)disable_hardirq(9)disable_nmi_nosync(9)enable_irq(9)enable_nmi(9)irq_set_irq_wake(9)irq_wake_thread(9)free_irq(9)request_threaded_irq(9)request_any_context_irq(9)request_nmi(9)irq_percpu_is_enabled(9)free_percpu_irq(9)request_percpu_irq_affinity(9)request_percpu_nmi(9)prepare_percpu_nmi(9)teardown_percpu_nmi(9)irq_set_irqchip_state(9)irq_has_action(9)irq_check_status_bit(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms