Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\crypto\hooks.c Create Date:2022-07-28 20:23:46
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__fscrypt_prepare_lookup

Proto:int __fscrypt_prepare_lookup(struct inode *dir, struct dentry *dentry, struct fscrypt_name *fname)

Type:int

Parameter:

TypeParameterName
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  If err && err != -ENOENT Then Return err
115  If is_ciphertext_name Then
116  spin_lock( & d_lock)
117  protected by d_lock |= Encrypted name (dir key was unavailable)
118  spin_unlock( & d_lock)
119  d_set_d_op(dentry, & fscrypt_d_ops)
121  Return err