函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kernel_mbind

函数原型:static long kernel_mbind(unsigned long start, unsigned long len, unsigned long mode, const unsigned long __user *nmask, unsigned long maxnode, unsigned int flags)

返回类型:long

参数:

类型参数名称
unsigned longstart
unsigned longlen
unsigned longmode
const unsigned long __user *nmask
unsigned longmaxnode
unsigned intflags
1427  start等于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)(start)
1428  mode_flags等于mode按位与MPOL_MODE_FLAGS is the union of all possible optional mode flags passed to* either set_mempolicy() or mbind().
1429  mode与等于MPOL_MODE_FLAGS is the union of all possible optional mode flags passed to* either set_mempolicy() or mbind().的反
1430  如果mode大于等于MPOL_MAX则返回:负EINVAL
1432  如果mode_flags按位与Flags for set_mempolicy mode_flags按位与MPOL_F_RELATIVE_NODES则返回:负EINVAL
1435  err等于Copy a node mask from user space.
1436  如果err则返回:err
1438  返回:do_mbind(start, len, mode, mode_flags, & nodes, flags)
调用者
名称描述
SYSCALL_DEFINE6
COMPAT_SYSCALL_DEFINE6