Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__fscrypt_prepare_link

Proto:int __fscrypt_prepare_link(struct inode *inode, struct inode *dir, struct dentry *dentry)

Type:int

Parameter:

TypeParameterName
struct inode *inode
struct inode *dir
struct dentry *dentry
57  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
58  If err Then Return err
62  If protected by d_lock & Encrypted name (dir key was unavailable) Then Return -ENOKEY
65  If Not fscrypt_has_permitted_context(dir, inode) Then Return -EXDEV
68  Return 0
Caller
NameDescribe
fscrypt_prepare_linkscrypt_prepare_link - prepare to link an inode into a possibly-encrypted directory*@old_dentry: an existing dentry for the inode being linked*@dir: the target directory*@dentry: negative dentry for the target filename* A new link can only be added to an