Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Return the node id preferred by the given mempolicy, or the given id

Proto:static int policy_node(gfp_t gfp, struct mempolicy *policy, int nd)

Type:int

Parameter:

TypeParameterName
gfp_tgfp
struct mempolicy *policy
intnd
1826  If See MPOL_* above == MPOL_PREFERRED && Not (See set_mempolicy() MPOL_F_* above & preferred local allocation ) Then nd = preferred
1828  Else
1834  WARN_ON_ONCE(See MPOL_* above == MPOL_BIND && (gfp & __GFP_THISNODE))
1837  Return nd
Caller
NameDescribe
huge_nodehuge_node(@vma, @addr, @gfp_flags, @mpol)*@vma: virtual memory area whose policy is sought*@addr: address in @vma for shared policy lookup and interleave policy*@gfp_flags: for requested zone*@mpol: pointer to mempolicy pointer for reference counted
alloc_pages_vmaalloc_pages_vma - Allocate a page for a VMA.*@gfp:* %GFP_USER user allocation.* %GFP_KERNEL kernel allocations,* %GFP_HIGHMEM highmem/user allocations,* %GFP_FS allocation should not call back into a file system.* %GFP_ATOMIC don't sleep.
alloc_pages_currentalloc_pages_current - Allocate pages.*@gfp:* %GFP_USER user allocation,* %GFP_KERNEL kernel allocation,* %GFP_HIGHMEM highmem allocation,* %GFP_FS don't call back into a file system.* %GFP_ATOMIC don't sleep.