函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\irq\ipi.c Create Date:2022-07-27 11:15:54
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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.

函数原型:irq_hw_number_t ipi_get_hwirq(unsigned int irq, unsigned int cpu)

返回类型:irq_hw_number_t

参数:

类型参数名称
unsigned intirq
unsigned intcpu
164  data等于irq_get_irq_data(irq)
165  struct cpumask * ipimask = data ? irq_data_get_affinity_mask(data) : NULL
167  如果非data或非ipimaskcpu大于等于nr_cpu_ids则返回:Contrary to Linux irqs, for hardware irqs the irq number 0 is valid
170  如果非测试CPU信息则返回:Contrary to Linux irqs, for hardware irqs the irq number 0 is valid
179  如果irq_domain_is_ipi_per_cpu(硬件中断对象)则data等于irq_get_irq_data(irq + cpu - ipi_offset)
182  返回:如果datairqd_to_hwirq(data)否则Contrary to Linux irqs, for hardware irqs the irq number 0 is valid