Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Return the bit number of a random bit set in the nodemask.* (returns NUMA_NO_NODE if nodemask is empty)

Proto:int node_random(const nodemask_t *maskp)

Type:int

Parameter:

TypeParameterName
const nodemask_t *maskp
23  bit = NUMA_NO_NODE
25  w = nodes_weight( * maskp)
26  If w Then bit = bitmap_ord_to_pos(bits, get_random_int() % w, MAX_NUMNODES)
29  Return bit
Caller
NameDescribe
cpuset_slab_spread_node