Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:key_invalidate - Invalidate a key.*@key: The key to be invalidated.* Mark a key as being invalidated and have it cleaned up immediately. The key* is ignored by all searches and other operations from this point.

Proto:void key_invalidate(struct key *key)

Type:void

Parameter:

TypeParameterName
struct key *key
1074  kenter("%d", key_serial(key))
1076  key_check(key)
1078  If Not st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from Then
1079  down_write_nested( & change vs change sem , 1)
1080  If Not st_and_set_bit - Set a bit and return its old value*@nr: Bit to set*@addr: Address to count from* This is an atomic fully-ordered operation (implied full memory barrier). Then Schedule a dead links collection run.
1082  lease a write lock
Caller
NameDescribe
__key_instantiate_and_linkInstantiate a key and link it into the target keyring atomically. Must be* called with the target keyring's semaphore writelocked. The target key's* semaphore need not be locked as instantiation is serialised by* key_construction_mutex.
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.
keyctl_invalidate_keyInvalidate a key.* The key must be grant the caller Invalidate permission for this to work.* The key and any links to the key will be automatically garbage collected* immediately.* Keys with KEY_FLAG_KEEP set should not be invalidated.
do_remove_keyTry to remove an fscrypt master encryption key
put_crypt_info