kstat_irqs_cpu(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ kstat_irqs_cpu(9) β€” Kernel API Manual ✨

Okay bestie, welcome to the kstat_irqs_cpu(9) page β€” it's giving tiny but important kernel API and I'm obsessed. πŸ’…


🌸 NAME 🌸

kstat_irqs_cpu - Get the statistics for an interrupt on a cpu


πŸ¦‹ SYNOPSIS πŸ¦‹

unsigned int kstat_irqs_cpu (unsigned int irq , int cpu );

πŸŽ€ ARGUMENTS πŸŽ€

  • irq β€” The interrupt number. That's the interrupt bestie in question. πŸ’–
  • cpu β€” The cpu number. Yep, the cpu we're checking. ✨

πŸ’œ DESCRIPTION πŸ’œ

Returns the sum of interrupt counts on cpu since boot for irq. Literally the total count for that interrupt on that cpu since the system booted, no cap. 🫢

⚠️ The caller must ensure that the interrupt is not removed concurrently. Like, that safety check is on the caller β€” don't let the interrupt get removed mid-call, bestie. 😭

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./kernel/irq/irqdesc.c β€” and then the whole iconic squad:


Source/version: ./kernel/irq Β· date: October 2026 Β· page: kstat_irqs_cpu(9). Stay slay, kernel bestie. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from