irq_check_status_bit(9)
β¨ irq_check_status_bit π
okay bestie, welcome to the kernel API manual β this one's a little function from irq_check_status_bit(9) and honestly it's giving "small but mighty" π
πΈ NAME πΈ
irq_check_status_bit β literally just checks whether bits in the irq descriptor status are set π no cap, that's the whole vibe check.
π¦ SYNOPSIS π¦
bool irq_check_status_bit (unsigned int irq , unsigned int bitmask );
yep, that's it. two args, one bool coming back at you π
π ARGUMENTS π
irqβ the linux irq number π§ this is the one you're peeking atbitmaskβ the bitmask to evaluate π like, the actual bits you're asking about
β RETURN β
Returns True if one of the bits in bitmask is set π₯ that's the whole answer. if none of them are set you get false, bestie, that's just how it goes π
π SEE ALSO π
the kernel file is ./kernel/irq/manage.c β go read it, it's iconic πβ¨
and here's the whole friend group of related calls, fr fr:
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_get_irqchip_state(9)irq_set_irqchip_state(9)irq_has_action(9)
like, that's a whole squad π«Ά you're gonna want to know them.
ngl this one's short, but knowing whether those status bits are set is lowkey important, so don't sleep on it π
and that's a wrap, bestie! π this little pearl comes straight out of the ./kernel/irq corner of the source tree, and the page is dated October 2026 β slay, see you in the next one! πππ¦
π¦ 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