| Function report | 
| Source Code: security\keys\key.c | Create Date:2022-07-28 18:15:20 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Get the key quota record for a user, allocating a new record if one doesn't* already exist.
Proto:struct key_user *key_user_lookup(kuid_t uid)
Type:struct key_user
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| kuid_t | uid | 
| 55 | try_again : | 
| 56 | parent = NULL | 
| 58 | spin_lock( & key_user_lock) | 
| 69 | Else Go to found | 
| 74 | If Not candidate Then | 
| 77 | spin_unlock( & key_user_lock) | 
| 79 | user = NULL | 
| 81 | If Value for the false possibility is greater at compile time(!candidate) Then Go to out | 
| 87 | Go to try_again | 
| 93 | atomic_set( & umber of keys , 0) | 
| 94 | atomic_set( & umber of instantiated keys , 0) | 
| 101 | rb_link_node( & node, parent, p) | 
| 102 | rb_insert_color( & node, & ree of quota records indexed by UID ) | 
| 103 | spin_unlock( & key_user_lock) | 
| 105 | Go to out | 
| 108 | found : | 
| 110 | spin_unlock( & key_user_lock) | 
| 112 | out : | 
| 113 | Return user | 
| Name | Describe | 
|---|---|
| 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. | 
| 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 |