Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Return a nodemask representing a mempolicy for filtering nodes for* page allocation

Proto:static nodemask_t *policy_nodemask(gfp_t gfp, struct mempolicy *policy)

Type:nodemask_t

Parameter:

TypeParameterName
gfp_tgfp
struct mempolicy *policy
1814  If Value for the false possibility is greater at compile time(See MPOL_* above == MPOL_BIND) && apply_policy_zone(policy, gfp_zone(gfp)) && puset_nodemask_valid_mems_allowed - check nodemask vs. curremt mems_allowed*@nodemask: the nodemask to be checked* Are any of the nodes in the nodemask allowed in current->mems_allowed? Then Return interleave/bind
1819  Return NULL
Caller
NameDescribe
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.