函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:q_matrix_alloc - Allocate a regular interrupt in a CPU map*@m: Matrix pointer*@msk: Which CPUs to search in*@reserved: Allocate previously reserved interrupts*@mapped_cpu: Pointer to store the CPU for which the irq was allocated

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

返回类型:int

参数:

类型参数名称
struct irq_matrix *m
const struct cpumask *msk
boolreserved
unsigned int *mapped_cpu
383  cpu等于Find the best CPU which has the lowest vector allocation count
384  如果cpu恒等于UINT_MAX则返回:负ENOSPC
387  cm等于per_cpu_ptr(maps, cpu)
388  bit等于matrix_alloc_area(m, cm, 1, false)
389  如果bit大于等于alloc_end则返回:负ENOSPC
391  allocated自加
392  available自减
393  total_allocated自加
394  global_available自减
395  如果reservedglobal_reserved自减
397  mapped_cpu等于cpu
398  trace_irq_matrix_alloc(bit, cpu, m, cm)
399  返回:bit
调用者
名称描述
assign_vector_locked