函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\groups.c Create Date:2022-07-27 10:35:37
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:xport the group_info to a user-space array

函数原型:static int groups_to_user(gid_t __user *grouplist, const struct group_info *group_info)

返回类型:int

参数:

类型参数名称
gid_t __user *grouplist
const struct group_info *group_info
45  user_ns等于current_user_ns()
47  count等于ngroups
49 i小于count循环
51  gid等于from_kgid_munged(user_ns, gid[i])
52  如果put_user - Write a simple value into user space(gid, grouplist + i)则返回:负EFAULT
55  返回:0
调用者
名称描述
SYSCALL_DEFINE2