Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Set the process memory policy

Proto:static long kernel_set_mempolicy(int mode, const unsigned long __user *nmask, unsigned long maxnode)

Type:long

Parameter:

TypeParameterName
intmode
const unsigned long __user *nmask
unsigned longmaxnode
1456  flags = mode & MPOL_MODE_FLAGS is the union of all possible optional mode flags passed to* either set_mempolicy() or mbind().
1457  mode &= ~MPOL_MODE_FLAGS is the union of all possible optional mode flags passed to* either set_mempolicy() or mbind().
1458  If mode >= MPOL_MAX Then Return -EINVAL
1460  If flags & Flags for set_mempolicy && flags & MPOL_F_RELATIVE_NODES Then Return -EINVAL
1462  err = Copy a node mask from user space.
1463  If err Then Return err
1465  Return Set the process memory policy
Caller
NameDescribe
SYSCALL_DEFINE3
COMPAT_SYSCALL_DEFINE3