函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:scrypt_drop_inode - check whether the inode's master key has been removed* Filesystems supporting fscrypt must call this from their ->drop_inode()* method so that encrypted inodes are evicted as soon as they're no longer in

函数原型:int fscrypt_drop_inode(struct inode *inode)

返回类型:int

参数:

类型参数名称
struct inode *inode
504  ci等于READ_ONCE(i_crypt_info)
513  如果非ci或非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.则返回:0
515  mk等于data[0]
525  返回:非is_master_key_secret_present( & The secret key material. After FS_IOC_REMOVE_ENCRYPTION_KEY is* executed, this is wiped and no new inodes can be unlocked with this* key; however, there may still be inodes in ->mk_decrypted_inodes* which could not be evicted)