函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:q_matrix_alloc_managed - Allocate a managed interrupt in a CPU map*@m: Matrix pointer*@cpu: On which CPU the interrupt should be allocated

函数原型:int irq_matrix_alloc_managed(struct irq_matrix *m, const struct cpumask *msk, unsigned int *mapped_cpu)

返回类型:int

参数:

类型参数名称
struct irq_matrix *m
const struct cpumask *msk
unsigned int *mapped_cpu
288  end等于alloc_end
291  如果pumask_empty - *srcp == 0*@srcp: the cpumask to that all cpus < nr_cpu_ids are clear.则返回:负EINVAL
294  cpu等于Find the best CPU which has the lowest number of managed IRQs allocated
295  如果cpu恒等于UINT_MAX则返回:负ENOSPC
298  cm等于per_cpu_ptr(maps, cpu)
299  end等于alloc_end
301  bitmap_andnot(scratch_map, managed_map, alloc_map, end)
302  bit等于find_first_bit(scratch_map, end)
303  如果bit大于等于end则返回:负ENOSPC
305  设置内存位
306  allocated自加
307  managed_allocated自加
308  total_allocated自加
309  mapped_cpu等于cpu
310  trace_irq_matrix_alloc_managed(bit, cpu, m, cm)
311  返回:bit
调用者
名称描述
assign_managed_vector