函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Retrieve NUMA policy

函数原型:static int kernel_get_mempolicy(int __user *policy, unsigned long __user *nmask, unsigned long maxnode, unsigned long addr, unsigned long flags)

返回类型:int

参数:

类型参数名称
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  如果nmask不等于NULLmaxnode小于nr_node_ids则返回:负EINVAL
1586  err等于Retrieve NUMA policy
1588  如果err则返回:err
1591  如果policyput_user - Write a simple value into user space(pval, policy)则返回:负EFAULT
1594  如果nmaskerr等于Copy a kernel node mask to user space
1597  返回:err
调用者
名称描述
SYSCALL_DEFINE5
COMPAT_SYSCALL_DEFINE5