函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:SMP: Our groups are copy-on-write. We can set them safely* without another task interfering.

函数原型:SYSCALL_DEFINE2(setgroups, int, gidsetsize, gid_t __user *, grouplist)

返回类型:

参数:

195  如果非may_setgroups()则返回:负EPERM
197  如果gidsetsize大于supplemental group IDs are available 则返回:负EINVAL
200  group_info等于groups_alloc(gidsetsize)
201  如果非group_info则返回:负ENOMEM
203  retval等于ll a group_info from a user-space array - it must be allocated already
204  如果retval
205  put_group_info - Release a reference to a group info structure*@group_info: The group info to release(group_info)
206  返回:retval
209  groups_sort(group_info)
210  retval等于set_current_groups - Change current's group subscription*@group_info: The group list to impose* Validate a group subscription and, if valid, impose it upon current's task* security record.
211  put_group_info - Release a reference to a group info structure*@group_info: The group info to release(group_info)
213  返回:retval