Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\cpumask.c Create Date:2022-07-28 06:16:03
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:unsigned int cpumask_local_spread(unsigned int i, int node)

Type:unsigned int

Parameter:

TypeParameterName
unsigned inti
intnode
211  i %= num_online_cpus()
213  If node == NUMA_NO_NODE Then
214  for_each_cpu(cpu, cpu_online_mask)
215  If i-- == 0 Then Return cpu
217  Else
219  for_each_cpu_and(cpu, Returns a pointer to the cpumask of CPUs on Node 'node'. , cpu_online_mask)
220  If i-- == 0 Then Return cpu
225  If pumask_test_cpu - test for a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@cpumask: the cpumask pointer* Returns 1 if @cpu is set in @cpumask, else returns 0 Then Continue
228  If i-- == 0 Then Return cpu
232  BUG()