函数逻辑报告

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

函数名称:__fscrypt_prepare_link

函数原型:int __fscrypt_prepare_link(struct inode *inode, struct inode *dir, struct dentry *dentry)

返回类型:int

参数:

类型参数名称
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  如果err则返回:err
62  如果 protected by d_lock 按位与Encrypted name (dir key was unavailable) 则返回:负ENOKEY
65  如果非fscrypt_has_permitted_context(dir, inode)则返回:负EXDEV
68  返回:0
调用者
名称描述
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