函数逻辑报告 |
Source Code:kernel\irq\affinity.c |
Create Date:2022-07-27 11:16:12 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Allocate vector number for each node, so that for each node:* 1) the allocated number is >= 1* 2) the allocated numbver is <= active CPU number of this node* The actual allocated total vectors may be less than @numvecs when
函数原型:static void alloc_nodes_vectors(unsigned int numvecs, cpumask_var_t *node_to_cpumask, const struct cpumask *cpu_mask, const nodemask_t nodemsk, struct cpumask *nmsk, struct node_vectors *node_vectors)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
unsigned int | numvecs | |
cpumask_var_t * | node_to_cpumask | |
const struct cpumask * | cpu_mask | |
const nodemask_t | nodemsk | |
struct cpumask * | nmsk | |
struct node_vectors * | node_vectors |
135 | remaining_ncpus等于0 |
137 | 以n小于nr_node_ids循环 |
146 | ncpus等于pumask_weight - Count of bits in *srcp*@srcp: the cpumask to count bits (< nr_cpu_ids) in. |
148 | 如果非ncpus则继续下一循环 |
150 | remaining_ncpus加等于ncpus |
154 | numvecs等于min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(unsigned, remaining_ncpus, numvecs) |
156 | sort(node_vectors, nr_node_ids, node_vectors[0]的长度, ncpus_cmp_func, NULL) |
227 | 以n小于nr_node_ids循环 |
233 | WARN_ON_ONCE(numvecs == 0) |
236 | nvectors等于max_t - return maximum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(unsigned, 1, numvecs * ncpus / remaining_ncpus) |
238 | WARN_ON_ONCE(nvectors > ncpus) |
242 | remaining_ncpus减等于ncpus |
名称 | 描述 |
---|---|
__irq_build_affinity_masks |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |