irq_percpu_is_enabled(9)
β¨ irq_percpu_is_enabled β¨
okay so this is a page from the Kernel API Manual (section 9, kernel devs only, no gatekeeping π ) and it's literally about checking if a per-cpu irq is turned on. tiny page, but iconic.
πΈ NAME πΈ
irq_percpu_is_enabled β check whether the per cpu irq is enabled π«Ά
π¦ SYNOPSIS π¦
bool irq_percpu_is_enabled (unsigned int irq );
like, you pass it an irq and it hands you back a bool, that's the whole vibe β¨
π ARGUMENTS π
irqβ the Linux irq number you wanna check, bestie. that's the one. π
π DESCRIPTION π
So here's the tea: you must call this from a non migratable context. not optional, not a suggestion, it's giving hard requirement π
What it does is return the enable state of a per cpu interrupt, on the current cpu β like, the one you're standing on right now. no cap. π§
π SEE ALSO π
the kernel file ./kernel/irq/manage.c is the source of truth here, and here's the whole squad of related pages π:
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)free_percpu_irq(9)request_percpu_irq_affinity(9)request_percpu_nmi(9)prepare_percpu_nmi(9)teardown_percpu_nmi(9)irq_get_irqchip_state(9)irq_set_irqchip_state(9)irq_has_action(9)irq_check_status_bit(9)
okay that's the whole page, love her π
this came out of ./kernel/irq and the version is dated October 2026 β go off, October 2026, you ate πβ¨π
π¦ 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