函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\crypto\keysetup.c Create Date:2022-07-29 10:57:33
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:put_crypt_info

函数原型:static void put_crypt_info(struct fscrypt_info *ci)

返回类型:void

参数:

类型参数名称
struct fscrypt_info *ci
326  如果非ci则返回
329  如果If non-NULL, then encryption is done using the master key directly* and ci_ctfm will equal ci_direct_key->dk_ctfm.keysetup_v1.c
331  否则如果True if the key should be freed when this fscrypt_info is freed 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  如果key
336  mk等于data[0]
346  加自旋锁
347  删除链表项
348  自旋锁解锁
349  如果_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_SATURATEDkey_invalidate(key)
351  key_put(key)
353  memzero_explicit - Fill a region of memory (e
354  kmem_cache_free(fscrypt_info_cachep, ci)
调用者
名称描述
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.