| Function report | 
| Source Code: security\keys\keyring.c | Create Date:2022-07-28 18:18:22 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Preallocate memory so that a key can be linked into to a keyring.
Proto:int __key_link_begin(struct key *keyring, const struct keyring_index_key *index_key, struct assoc_array_edit **_edit)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct key * | keyring | |
| const struct keyring_index_key * | index_key | |
| struct assoc_array_edit ** | _edit | 
| 1301 | kenter("%d,%s,%s,", key serial number , name, description) | 
| 1307 | * _edit = NULL | 
| 1309 | ret = -EKEYREVOKED | 
| 1310 | If st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from Then Go to error | 
| 1316 | edit = assoc_array_insert - Script insertion of an object into an associative array*@array: The array to insert into | 
| 1328 | If Not dead_leaf Then | 
| 1329 | ret = key_payload_reserve - Adjust data quota reservation for the key's payload*@key: The key to make the reservation for | 
| 1331 | If ret < 0 Then Go to error_cancel | 
| 1336 | kleave(" = 0") | 
| 1337 | Return 0 | 
| 1339 | error_cancel : | 
| 1341 | error : | 
| 1343 | Return ret | 
| Name | Describe | 
|---|---|
| key_reject_and_link | key_reject_and_link - Negatively instantiate a key and link it into the keyring.*@key: The key to instantiate.*@timeout: The timeout on the negative key.*@error: The error to return when the key is hit. | 
| key_create_or_update | key_create_or_update - Update or create and instantiate a key.*@keyring_ref: A pointer to the destination keyring with possession flag.*@type: The type of key.*@description: The searchable description for the key. | 
| key_link | key_link - Link a key to a keyring*@keyring: The keyring to make the link in | 
| key_move | key_move - Move a key from one keyring to another*@key: The key to move*@from_keyring: The keyring to remove the link from | 
| construct_alloc_key | Allocate a new key in under-construction state and attempt to link it in to* the requested keyring.* May return a key that's already under construction instead if there was a* race between two thread calling request_key(). | 
| key_instantiate_and_link | key_instantiate_and_link - Instantiate a key and link it into the keyring.*@key: The key to instantiate.*@data: The data to use to instantiate the keyring.*@datalen: The length of @data.*@keyring: Keyring to create a link in on success (or NULL). | 
| 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 |