| 函数逻辑报告 | 
| Source Code: kernel\ucount.c | Create Date:2022-07-27 10:34:47 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:get_ucounts
函数原型:static struct ucounts *get_ucounts(struct user_namespace *ns, kuid_t uid)
返回类型:struct ucounts
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct user_namespace * | ns | |
| kuid_t | uid | 
| 127 | hashent等于ucounts_hashentry(ns, uid) | 
| 130 | spin_lock_irq( & ucounts_lock) | 
| 131 | ucounts等于find_ucounts(ns, uid, hashent) | 
| 132 | 如果非ucounts则 | 
| 133 | spin_unlock_irq( & ucounts_lock) | 
| 136 | 如果非new则返回:NULL | 
| 141 | count等于0 | 
| 143 | spin_lock_irq( & ucounts_lock) | 
| 144 | ucounts等于find_ucounts(ns, uid, hashent) | 
| 145 | 如果ucounts则 | 
| 146 | 释放内存 | 
| 147 | 否则 | 
| 148 | hlist_add_head( & node, hashent) | 
| 154 | 否则count加等于1 | 
| 156 | spin_unlock_irq( & ucounts_lock) | 
| 157 | 返回:ucounts | 
| 名称 | 描述 | 
|---|---|
| inc_ucount | 
| 源代码转换工具 开放的插件接口 | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |