Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Retrieve NUMA policy

Proto:static int kernel_get_mempolicy(int __user *policy, unsigned long __user *nmask, unsigned long maxnode, unsigned long addr, unsigned long flags)

Type:int

Parameter:

TypeParameterName
int __user *policy
unsigned long __user *nmask
unsigned longmaxnode
unsigned longaddr
unsigned longflags
1578  pval = pval
1581  addr = Architectures that support memory tagging (assigning tags to memory regions,* embedding these tags into addresses that point to these memory regions, and* checking that the memory and the pointer tags match on memory accesses)(addr)
1583  If nmask != NULL && maxnode < nr_node_ids Then Return -EINVAL
1586  err = Retrieve NUMA policy
1588  If err Then Return err
1591  If policy && Write a simple value into user space(pval, policy) Then Return -EFAULT
1594  If nmask Then err = Copy a kernel node mask to user space
1597  Return err
Caller
NameDescribe
SYSCALL_DEFINE5
COMPAT_SYSCALL_DEFINE5