Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kernel_mbind

Proto:static long kernel_mbind(unsigned long start, unsigned long len, unsigned long mode, const unsigned long __user *nmask, unsigned long maxnode, unsigned int flags)

Type:long

Parameter:

TypeParameterName
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  If mode >= MPOL_MAX Then Return -EINVAL
1432  If mode_flags & Flags for set_mempolicy && mode_flags & MPOL_F_RELATIVE_NODES Then Return -EINVAL
1435  err = Copy a node mask from user space.
1436  If err Then Return err
1438  Return do_mbind(start, len, mode, mode_flags, & nodes, flags)
Caller
NameDescribe
SYSCALL_DEFINE6
COMPAT_SYSCALL_DEFINE6