函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__fscrypt_prepare_lookup

函数原型:int __fscrypt_prepare_lookup(struct inode *dir, struct dentry *dentry, struct fscrypt_name *fname)

返回类型:int

参数:

类型参数名称
struct inode *dir
struct dentry *dentry
struct fscrypt_name *fname
110  err等于scrypt_setup_filename() - prepare to search a possibly encrypted directory*@dir: the directory that will be searched*@iname: the user-provided filename being searched for*@lookup: 1 if we're allowed to proceed without the key because it's* ->lookup() or
112  如果errerr不等于负ENOENT则返回:err
115  如果is_ciphertext_name
116  加自旋锁
117  protected by d_lock 或等于Encrypted name (dir key was unavailable)
118  自旋锁解锁
119  d_set_d_op(dentry, & fscrypt_d_ops)
121  返回:err