Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\groups.c Create Date:2022-07-28 09:35:01
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:groups_alloc

Proto:struct group_info *groups_alloc(int gidsetsize)

Type:struct group_info

Parameter:

TypeParameterName
intgidsetsize
20  len = sizeof(structgroup_info) + sizeof(kgid_t) * gidsetsize
21  gi = Allocation memory
22  If Not gi Then gi = __vmalloc(len, GFP_KERNEL_ACCOUNT, PAGE_KERNEL)
24  If Not gi Then Return NULL
27  atomic_set( & usage, 1)
28  ngroups = gidsetsize
29  Return gi
Caller
NameDescribe
SYSCALL_DEFINE2SMP: Our groups are copy-on-write. We can set them safely* without another task interfering.
SYSCALL_DEFINE2