Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ipi_send_verify

Proto:static int ipi_send_verify(struct irq_chip *chip, struct irq_data *data, const struct cpumask *dest, unsigned int cpu)

Type:int

Parameter:

TypeParameterName
struct irq_chip *chip
struct irq_data *data
const struct cpumask *dest
unsigned intcpu
189  ipimask = irq_data_get_affinity_mask(data)
191  If Not chip || Not ipimask Then Return -EINVAL
194  If Not ipi_send_single && Not ipi_send_mask Then Return -EINVAL
197  If cpu >= nr_cpu_ids Then Return -EINVAL
200  If dest Then
201  If Not pumask_subset - (*src1p & ~*src2p) == 0*@src1p: the first input*@src2p: the second input* Returns 1 if *@src1p is a subset of *@src2p, else returns 0 Then Return -EINVAL
203  Else
204  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 -EINVAL
207  Return 0
Caller
NameDescribe
ipi_send_singlepi_send_single - Send an IPI to a single CPU*@virq: linux irq number from irq_reserve_ipi()*@cpu: destination CPU, must in the destination mask passed to* irq_reserve_ipi()* Returns zero on success and negative error number on failure.
ipi_send_maskpi_send_mask - Send an IPI to target CPU(s)*@virq: linux irq number from irq_reserve_ipi()*@dest: dest CPU(s), must be a subset of the mask passed to* irq_reserve_ipi()* Returns zero on success and negative error number on failure.