函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:q_destroy_ipi() - unreserve an IPI that was previously allocated*@irq: linux irq number to be destroyed*@dest: cpumask of cpus which should have the IPI removed* The IPIs allocated with irq_reserve_ipi() are retuerned to the system

函数原型:int irq_destroy_ipi(unsigned int irq, const struct cpumask *dest)

返回类型:int

参数:

类型参数名称
unsigned intirq
const struct cpumask *dest
117  data等于irq_get_irq_data(irq)
118  struct cpumask * ipimask = data ? irq_data_get_affinity_mask(data) : NULL
122  如果非irq或非data或非ipimask则返回:负EINVAL
125  domain等于硬件中断对象
126  如果WARN_ON(domain == NULL)则返回:负EINVAL
129  如果非irq_domain_is_ipi(domain)则
130  打印警告信息("Trying to destroy a non IPI domain!\n")
131  返回:负EINVAL
134  如果WARN_ON(!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)则返回:负EINVAL
141  如果irq_domain_is_ipi_per_cpu(domain)则
142  irq等于irqUniprocessor. Assume all masks are "1". ipi_offset
143  nr_irqs等于pumask_weight - Count of bits in *srcp*@srcp: the cpumask to count bits (< nr_cpu_ids) in.
144  否则
145  nr_irqs等于1
148  irq_domain_free_irqs(irq, nr_irqs)
149  返回:0