Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:int huge_node(struct vm_area_struct *vma, unsigned long addr, gfp_t gfp_flags, struct mempolicy **mpol, nodemask_t **nodemask)

Type:int

Parameter:

TypeParameterName
struct vm_area_struct *vma
unsigned longaddr
gfp_tgfp_flags
struct mempolicy **mpol
nodemask_t **nodemask
1962  mpol = get_vma_policy(@vma, @addr)*@vma: virtual memory area whose policy is sought*@addr: address in @vma for shared policy lookup* Returns effective policy for a VMA at specified address
1963  * nodemask = NULL
1965  If Value for the false possibility is greater at compile time(See MPOL_* above == MPOL_INTERLEAVE) Then
1966  nid = Determine a node number for interleave
1968  Else
1969  nid = Return the node id preferred by the given mempolicy, or the given id
1970  If See MPOL_* above == MPOL_BIND Then nodemask = interleave/bind
1973  Return nid
Caller
NameDescribe
alloc_buddy_huge_page_with_mpolUse the VMA's mpolicy to allocate a huge page from the buddy.
alloc_huge_page_vmamempolicy aware migration callback