函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\fscrypt.h Create Date:2022-07-29 10:32:14
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:scrypt_require_key - require an inode's encryption key*@inode: the inode we need the key for* If the inode is encrypted, set up its encryption key if not already done

函数原型:static inline int fscrypt_require_key(struct inode *inode)

返回类型:int

参数:

类型参数名称
struct inode *inode
547  如果IS_ENCRYPTED(inode)则
548  err等于fscrypt_get_encryption_info(inode)
550  如果err则返回:err
552  如果非fscrypt_has_encryption_key(inode)则返回:负ENOKEY
555  返回:0
调用者
名称描述
fscrypt_file_openscrypt_file_open - prepare to open a possibly-encrypted regular file*@inode: the inode being opened*@filp: the struct file being set up* Currently, an encrypted regular file can only be opened if its encryption key
__fscrypt_prepare_link
__fscrypt_prepare_rename
__fscrypt_encrypt_symlink
fscrypt_prepare_setattrscrypt_prepare_setattr - prepare to change a possibly-encrypted inode's attributes*@dentry: dentry through which the inode is being changed*@attr: attributes to change* Prepare for ->setattr() on a possibly-encrypted inode. On an encrypted file,