| Function report | 
| Source Code: security\keys\key.c | Create Date:2022-07-28 18:15:59 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Find a key by its serial number.
Proto:struct key *key_lookup(key_serial_t id)
Type:struct key
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| key_serial_t | id | 
| 660 | spin_lock( & key_serial_lock) | 
| 665 | key = rb_entry(n, structkey, serial_node) | 
| 667 | If id < key serial number Then n = rb_left | 
| 669 | Else if id > key serial number Then n = rb_right | 
| 671 | Else Go to found | 
| 675 | not_found : | 
| 677 | Go to error | 
| 679 | found : | 
| 686 | error : | 
| 687 | spin_unlock( & key_serial_lock) | 
| 688 | Return key | 
| Name | Describe | 
|---|---|
| lookup_user_key | Look up a key ID given us by userspace with a given permissions mask to get* the key it refers to.* Flags can be passed to request that special keyrings be created if referred* to directly, to permit partially constructed keys to be found and to skip | 
| 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 |