Function report |
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 activity | Download SCCT | Chinese |
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:
| Type | Parameter | Name |
|---|---|---|
| unsigned int | irq | |
| unsigned int | cpu |
| 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 |
| 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 |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |