Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\keys\keyring.c Create Date:2022-07-28 18:18:25
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Finish linking a key into to a keyring.* Must be called with __key_link_begin() having being called.

Proto:void __key_link_end(struct key *keyring, const struct keyring_index_key *index_key, struct assoc_array_edit *edit)__releases(&keyring->sem) __releases(&keyring_serialise_link_lock)

Type:void

Parameter:

TypeParameterName
struct key *keyring
const struct keyring_index_key *index_key
struct assoc_array_edit *edit
1388  BUG_ON(type == NULL)
1389  kenter("%d,%s,", key serial number , name)
1391  If edit Then
1392  If Not dead_leaf Then
1396  assoc_array_cancel_edit - Discard an edit script
1398  lease a write lock
1400  If type == key_type_keyring Then mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
Caller
NameDescribe
key_reject_and_linkkey_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_updatekey_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_linkkey_link - Link a key to a keyring*@keyring: The keyring to make the link in
key_movekey_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_keyAllocate 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_linkkey_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).