Function report |
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 activity | Download SCCT | Chinese |
Name:groups_alloc
Proto:struct group_info *groups_alloc(int gidsetsize)
Type:struct group_info
Parameter:
| Type | Parameter | Name |
|---|---|---|
| int | gidsetsize |
| 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 |
| Name | Describe |
|---|---|
| SYSCALL_DEFINE2 | SMP: Our groups are copy-on-write. We can set them safely* without another task interfering. |
| SYSCALL_DEFINE2 |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |