| 函数逻辑报告 | 
| Source Code: security\keys\key.c | Create Date:2022-07-27 19:50:12 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:Get the key quota record for a user, allocating a new record if one doesn't* already exist.
函数原型:struct key_user *key_user_lookup(kuid_t uid)
返回类型:struct key_user
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| kuid_t | uid | 
| 55 | try_again : | 
| 56 | parent = NULL | 
| 58 | 加自旋锁 | 
| 69 | 否则转到:found | 
| 74 | 如果非candidate则 | 
| 93 | atomic_set( & umber of keys , 0) | 
| 94 | atomic_set( & umber of instantiated keys , 0) | 
| 98 | spin_lock_init( & lock) | 
| 101 | rb_link_node( & node, parent, p) | 
| 102 | rb_insert_color( & node, & ree of quota records indexed by UID ) | 
| 103 | 自旋锁解锁 | 
| 105 | 转到:out | 
| 108 | found : | 
| 110 | 自旋锁解锁 | 
| 111 | 释放内存 | 
| 112 | out : | 
| 113 | 返回:user | 
| 名称 | 描述 | 
|---|---|
| key_alloc | key_alloc - Allocate a key of the specified type.*@type: The type of key to allocate.*@desc: The key description to allow the key to be searched out.*@uid: The owner of the new key.*@gid: The group ID for the new key's group permissions. | 
| keyctl_chown_key | Change the ownership of a key* The key must grant the caller Setattr permission for this to work, though* the key need not be fully instantiated yet. For the UID to be changed, or* for the GID to be changed to a group the caller is not a member of, the | 
| construct_key_and_link | Commence key construction. | 
| 源代码转换工具 开放的插件接口 | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |