Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\irq\irqdesc.c Create Date:2022-07-28 10:08:43
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:kstat_irqs - Get the statistics for an interrupt*@irq: The interrupt number* Returns the sum of interrupt counts on all cpus since boot for*@irq. The caller must ensure that the interrupt is not removed* concurrently.

Proto:unsigned int kstat_irqs(unsigned int irq)

Type:unsigned int

Parameter:

TypeParameterName
unsigned intirq
981  desc = Interrupt to descriptor
982  sum = 0
985  If Not desc || Not kstat_irqs Then Return 0
987  If Not irq_settings_is_per_cpu_devid(desc) && Not irq_settings_is_per_cpu(desc) && Not irq_is_nmi(desc) Then Return tot_count
992  for_each_possible_cpu(cpu)
993  sum += per_cpu_ptr(kstat_irqs, cpu)
994  Return sum
Caller
NameDescribe
kstat_irqs_usrkstat_irqs_usr - Get the statistics for an interrupt*@irq: The interrupt number* Returns the sum of interrupt counts on all cpus since boot for @irq