函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\mempolicy.c Create Date:2022-07-27 17:06:02
Last Modify:2020-03-17 22:28:11 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:int huge_node(struct vm_area_struct *vma, unsigned long addr, gfp_t gfp_flags, struct mempolicy **mpol, nodemask_t **nodemask)

返回类型:int

参数:

类型参数名称
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  如果此条件成立可能性小(为编译器优化)(See MPOL_* above == MPOL_INTERLEAVE)则
1966  nid等于Determine a node number for interleave
1968  否则
1969  nid等于Return the node id preferred by the given mempolicy, or the given id
1970  如果See MPOL_* above 恒等于MPOL_BINDnodemask等于 interleave/bind
1973  返回:nid
调用者
名称描述
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