Function report |
Source Code:kernel\ucount.c |
Create Date:2022-07-28 09:34:16 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:inc_ucount
Proto:struct ucounts *inc_ucount(struct user_namespace *ns, kuid_t uid, enum ucount_type type)
Type:struct ucounts
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct user_namespace * | ns | |
| kuid_t | uid | |
| enum ucount_type | type |
| 194 | ucounts = get_ucounts(ns, uid) |
| 198 | max = READ_ONCE(ucount_max[type]) |
| 199 | If Not atomic_inc_below( & ucount[type], max) Then Go to fail |
| 202 | Return ucounts |
| 203 | fail : |
| 208 | put_ucounts(ucounts) |
| 209 | Return NULL |
| Name | Describe |
|---|---|
| inc_cgroup_namespaces | group namespaces |
| inc_uts_namespaces | |
| inc_user_namespaces | |
| inc_pid_namespaces | |
| inotify_new_group |
| 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 |