Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:get_task_policy

Proto:struct mempolicy *get_task_policy(struct task_struct *p)

Type:struct mempolicy

Parameter:

TypeParameterName
struct task_struct *p
132  pol = mempolicy
135  If pol Then Return pol
138  node = Returns the number of the current Node.
139  If node != NUMA_NO_NODE Then
140  pol = preferred_node_policy[node]
142  If See MPOL_* above Then Return pol
146  Return un-time system-wide default policy => local allocation
Caller
NameDescribe
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.