函数逻辑报告

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_rename

函数原型:int __fscrypt_prepare_rename(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags)

返回类型:int

参数:

类型参数名称
struct inode *old_dir
struct dentry *old_dentry
struct inode *new_dir
struct dentry *new_dentry
unsigned intflags
78  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
79  如果err则返回:err
82  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
83  如果err则返回:err
87  如果 protected by d_lock 按位或 protected by d_lock 的值按位与Encrypted name (dir key was unavailable) 则返回:负ENOKEY
91  如果old_dir不等于new_dir
92  如果IS_ENCRYPTED(new_dir)且非fscrypt_has_permitted_context(new_dir, 获得目录项的索引节点)则返回:负EXDEV
97  如果flags按位与Exchange source and dest IS_ENCRYPTED(old_dir)且非fscrypt_has_permitted_context(old_dir, 获得目录项的索引节点)则返回:负EXDEV
103  返回:0
调用者
名称描述
fscrypt_prepare_renamescrypt_prepare_rename - prepare for a rename between possibly-encrypted directories*@old_dir: source directory*@old_dentry: dentry for source file*@new_dir: target directory*@new_dentry: dentry for target location (may be negative unless