函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Find the best CPU which has the lowest vector allocation count

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

返回类型:unsigned int

参数:

类型参数名称
struct irq_matrix *m
const struct cpumask *msk
132  maxavl等于0
135  best_cpu等于UINT_MAX
138  cm等于per_cpu_ptr(maps, cpu)
140  如果非onlineavailable小于等于maxavl则继续下一循环
143  best_cpu等于cpu
144  maxavl等于available
146  返回:best_cpu
调用者
名称描述
irq_matrix_allocq_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