Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\mempolicy.c Create Date:2022-07-28 15:31:29
Last Modify:2020-03-17 22:28:11 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Return nodemask for policy for get_mempolicy() query* Called with task's alloc_lock held

Proto:static void get_policy_nodemask(struct mempolicy *p, nodemask_t *nodes)

Type:void

Parameter:

TypeParameterName
struct mempolicy *p
nodemask_t *nodes
849  nodes_clear( * nodes)
850  If p == un-time system-wide default policy => local allocation Then Return
854  Case See MPOL_* above == MPOL_BIND
856  Case See MPOL_* above == MPOL_INTERLEAVE
857  nodes = interleave/bind
858  Break
859  Case See MPOL_* above == MPOL_PREFERRED
860  If Not (See set_mempolicy() MPOL_F_* above & preferred local allocation ) Then The inline keyword gives the compiler room to decide to inline, or* not inline a function as it sees best( preferred , * nodes)
863  Break
864  Default
865  BUG()
Caller
NameDescribe
do_get_mempolicyRetrieve NUMA policy