kstat_irqs_usr(9)
okay bestie π weβre opening the kstat_irqs_usr(9) page from the Kernel API Manual, and itβs giving βget the interrupt stats from thread contextβ realness β¨
π NAME π
kstat_irqs_usr β get the statistics for an interrupt from thread context, no cap π«Ά
β¨ SYNOPSIS β¨
unsigned int kstat_irqs_usr (unsigned int irq );
π ARGUMENTS π
irqβ the interrupt number, bestie. thatβs the whole arg π
πΈ DESCRIPTION πΈ
Returns the sum of interrupt counts on all cpus since boot for irq. literally all the counts, summed up, from boot oβclock β
It uses rcu to protect the access, because a concurrent removal of an interrupt descriptor is observing an rcu grace period before delayed_free_desc/irq_kobj_release. so yeah, thereβs a whole grace-period moment happening before the cleanup, and rcu is lowkey holding the door πβ¨
π¦ SEE ALSO π¦
- Kernel file
./kernel/irq/irqdesc.cπ irq_get_nr_irqs(9)irq_set_nr_irqs(9)generic_handle_irq(9)generic_handle_irq_safe(9)generic_handle_domain_irq(9)generic_handle_domain_nmi(9)generic_handle_demux_domain_irq(9)irq_free_descs(9)__irq_alloc_descs(9)irq_get_next_irq(9)kstat_irqs_cpu(9)
xoxo, your girl signing off from ./kernel/irq β October 2026 edition, still serving kstat_irqs_usr(9) realness π
ππ
π¦ 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