函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:COMPAT_SYSCALL_DEFINE5

函数原型:COMPAT_SYSCALL_DEFINE5(get_mempolicy, int __user *, policy, compat_ulong_t __user *, nmask, compat_ulong_t, maxnode, compat_ulong_t, addr, compat_ulong_t, flags)

返回类型:

参数:

1615  unsigned long __user * nm = NULL
1617  DECLARE_BITMAP(bm, MAX_NUMNODES)
1619  nr_bits等于min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(unsignedlong, maxnode - 1, nr_node_ids)
1620  alloc_size等于@a is a power of 2 value (nr_bits, BITS_PER_LONG)除8
1622  如果nmasknm等于Allocate user-space memory for the duration of a single system call,* in order to marshall parameters inside a compat thunk.
1625  err等于Retrieve NUMA policy
1627  如果非errnmask
1629  copy_size等于min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(unsignedlong, bm的长度, alloc_size)
1630  err等于copy_from_user(bm, nm, copy_size)
1632  err或等于用户内存块清零
1633  err或等于compat_put_bitmap(nmask, bm, nr_bits)
1636  返回:err