Function report |
Source Code:kernel\user.c |
Create Date:2022-07-28 09:14:04 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:alloc_uid
Proto:struct user_struct *alloc_uid(kuid_t uid)
Type:struct user_struct
Parameter:
| Type | Parameter | Name |
|---|---|---|
| kuid_t | uid |
| 177 | hashent = uidhashentry(uid) |
| 180 | spin_lock_irq( & The uidhash_lock is mostly taken from process context, but it is* occasionally also taken from softirq/tasklet context, when* task-structs get RCU-freed) |
| 181 | up = uid_hash_find(uid, hashent) |
| 182 | spin_unlock_irq( & The uidhash_lock is mostly taken from process context, but it is* occasionally also taken from softirq/tasklet context, when* task-structs get RCU-freed) |
| 184 | If Not up Then |
| 186 | If Not new Then Return NULL |
| 191 | ratelimit_state_init( & Miscellaneous per-user rate limit , HZ, 100) |
| 192 | ratelimit_set_flags( & Miscellaneous per-user rate limit , ssue num suppressed message on exit ) |
| 198 | spin_lock_irq( & The uidhash_lock is mostly taken from process context, but it is* occasionally also taken from softirq/tasklet context, when* task-structs get RCU-freed) |
| 199 | up = uid_hash_find(uid, hashent) |
| 200 | If up Then |
| 202 | Else |
| 209 | Return up |
| 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 |