Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:pi_get_hwirq - Get the hwirq associated with an IPI to a cpu*@irq: linux irq number*@cpu: the target cpu* When dealing with coprocessors IPI, we need to inform the coprocessor of* the hwirq it needs to use to receive and send IPIs.

Proto:irq_hw_number_t ipi_get_hwirq(unsigned int irq, unsigned int cpu)

Type:irq_hw_number_t

Parameter:

TypeParameterName
unsigned intirq
unsigned intcpu
164  data = irq_get_irq_data(irq)
165  struct cpumask * ipimask = data ? irq_data_get_affinity_mask(data) : NULL
167  If Not data || Not ipimask || cpu >= nr_cpu_ids Then Return Contrary to Linux irqs, for hardware irqs the irq number 0 is valid
170  If Not pumask_test_cpu - test for a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@cpumask: the cpumask pointer* Returns 1 if @cpu is set in @cpumask, else returns 0 Then Return Contrary to Linux irqs, for hardware irqs the irq number 0 is valid
179  If irq_domain_is_ipi_per_cpu(domain) Then data = irq_get_irq_data(irq + cpu - ipi_offset)
182  Return If data Then irqd_to_hwirq(data) Else Contrary to Linux irqs, for hardware irqs the irq number 0 is valid