函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Set the process memory policy

函数原型:static long kernel_set_mempolicy(int mode, const unsigned long __user *nmask, unsigned long maxnode)

返回类型:long

参数:

类型参数名称
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  如果mode大于等于MPOL_MAX则返回:负EINVAL
1460  如果flags按位与Flags for set_mempolicy flags按位与MPOL_F_RELATIVE_NODES则返回:负EINVAL
1462  err等于Copy a node mask from user space.
1463  如果err则返回:err
1465  返回:Set the process memory policy
调用者
名称描述
SYSCALL_DEFINE3
COMPAT_SYSCALL_DEFINE3