函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:pumask_local_spread - select the i'th cpu with local numa cpu's first*@i: index number*@node: local numa_node* This function selects an online CPU according to a numa aware policy;* local cpus are returned first, followed by non-local ones, then it

函数原型:unsigned int cpumask_local_spread(unsigned int i, int node)

返回类型:unsigned int

参数:

类型参数名称
unsigned inti
intnode
211  i取模等于num_online_cpus()
213  如果node恒等于NUMA_NO_NODE
214  遍历CPU(cpu, cpu_online_mask)
215  如果i自减恒等于0则返回:cpu
217  否则
219  遍历CPU(cpu, Returns a pointer to the cpumask of CPUs on Node 'node'. , cpu_online_mask)
220  如果i自减恒等于0则返回:cpu
225  如果测试CPU信息则继续下一循环
228  如果i自减恒等于0则返回:cpu
232  BUG()