kstat_irqs_usr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 πŸ¦‹


xoxo, your girl signing off from ./kernel/irq β€” October 2026 edition, still serving kstat_irqs_usr(9) realness πŸ’…πŸ’–πŸŽ€

πŸ“¦ where this page comes from