Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\crypto\keysetup.c Create Date:2022-07-28 20:24:01
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:put_crypt_info

Proto:static void put_crypt_info(struct fscrypt_info *ci)

Type:void

Parameter:

TypeParameterName
struct fscrypt_info *ci
326  If Not ci Then Return
329  If If non-NULL, then encryption is done using the master key directly* and ci_ctfm will equal ci_direct_key->dk_ctfm. Then keysetup_v1.c
331  Else if True if the key should be freed when this fscrypt_info is freed Then rypto_free_skcipher() - zeroize and free cipher handle*@tfm: cipher handle to be freed
334  key = The master key with which this inode was unlocked (decrypted). This* will be NULL if the master key was found in a process-subscribed* keyring rather than in the filesystem-level keyring.
335  If key Then
336  mk = data[0]
346  spin_lock( & mk_decrypted_inodes_lock)
347  deletes entry from list
348  spin_unlock( & mk_decrypted_inodes_lock)
349  If _dec_and_test - decrement a refcount and test if it is 0*@r: the refcount* Similar to atomic_dec_and_test(), it will WARN on underflow and fail to* decrement when saturated at REFCOUNT_SATURATED Then key_invalidate(key)
351  key_put(key)
353  memzero_explicit - Fill a region of memory (e
354  kmem_cache_free(fscrypt_info_cachep, ci)
Caller
NameDescribe
fscrypt_get_encryption_info
fscrypt_put_encryption_infoscrypt_put_encryption_info - free most of an inode's fscrypt data* Free the inode's fscrypt_info. Filesystems must call this when the inode is* being evicted. An RCU grace period need not have elapsed yet.