函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Copy a kernel node mask to user space

函数原型:static int copy_nodes_to_user(unsigned long __user *mask, unsigned long maxnode, nodemask_t *nodes)

返回类型:int

参数:

类型参数名称
unsigned long __user *mask
unsigned longmaxnode
nodemask_t *nodes
1406  copy等于@a is a power of 2 value (maxnode - 1, 64)除8
1407  nbytes等于BITS_TO_LONGS(nr_node_ids)乘sizeof(long)
1409  如果copy大于nbytes
1410  如果copy大于PAGE_SIZE则返回:负EINVAL
1412  如果用户内存块清零则返回:负EFAULT
1414  copy等于nbytes
1416  返回:如果copy_to_user(mask, nodes_addr( * nodes), copy)则负EFAULT否则0
调用者
名称描述
kernel_get_mempolicyRetrieve NUMA policy