函数逻辑报告 | 
Source Code:kernel\user.c | 
Create Date:2022-07-27 10:13:58 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:alloc_uid
函数原型:struct user_struct *alloc_uid(kuid_t uid)
返回类型:struct user_struct
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| 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 | 如果非up则 | 
| 186 | 如果非new则返回: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 | 如果up则 | 
| 201 | 释放一个对象 | 
| 202 | 否则 | 
| 209 | 返回:up | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |