函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:scrypt_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

函数原型:int fscrypt_file_open(struct inode *inode, struct file *filp)

返回类型:int

参数:

类型参数名称
struct inode *inode
struct file *filp
35  err等于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
36  如果err则返回:err
39  dir等于dget_parent(file_dentry(filp))
40  如果IS_ENCRYPTED(获得目录项的索引节点)且非fscrypt_has_permitted_context(获得目录项的索引节点, inode)则
42  fscrypt_warn(inode, "Inconsistent encryption context (parent directory: %lu)", i_ino)
45  err等于负EPERM
47  dput - release a dentry*@dentry: dentry to release * Release a dentry. This will drop the usage count and if appropriate* call the dentry unlink method as well as removing it from the queues and* releasing its resources
48  返回:err