函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:get_task_policy

函数原型:struct mempolicy *get_task_policy(struct task_struct *p)

返回类型:struct mempolicy

参数:

类型参数名称
struct task_struct *p
132  pol等于mempolicy
135  如果pol则返回:pol
138  node等于Returns the number of the current Node.
139  如果node不等于NUMA_NO_NODE
140  pol等于preferred_node_policy[node]
142  如果See MPOL_* above 则返回:pol
146  返回:un-time system-wide default policy => local allocation
调用者
名称描述
get_vma_policyget_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
vma_policy_mof
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.