函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\fsnotify.h Create Date:2022-07-27 13:03:01
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:snotify_move - file old_name at old_dir was moved to new_name at new_dir

函数原型:static inline void fsnotify_move(struct inode *old_dir, struct inode *new_dir, const struct qstr *old_name, int isdir, struct inode *target, struct dentry *moved)

返回类型:void

参数:

类型参数名称
struct inode *old_dir
struct inode *new_dir
const struct qstr *old_name
intisdir
struct inode *target
struct dentry *moved
109  source等于 Where the name belongs to - NULL is * negative
110  fs_cookie等于fsnotify_get_cookie()
111  old_dir_mask等于File was moved from X
112  new_dir_mask等于File was moved to Y
113  mask等于Self was moved
114  new_name等于d_name
116  如果old_dir恒等于new_dirold_dir_mask或等于le renamed
119  如果isdir
120  old_dir_mask或等于vent occurred against dir
121  new_dir_mask或等于vent occurred against dir
122  mask或等于vent occurred against dir
125  fsnotify(old_dir, old_dir_mask, source, FSNOTIFY_EVENT_INODE, old_name, fs_cookie)
127  fsnotify(new_dir, new_dir_mask, source, FSNOTIFY_EVENT_INODE, new_name, fs_cookie)
130  如果targetsnotify_link_count - inode's link count changed
133  如果sourcefsnotify(source, mask, source, FSNOTIFY_EVENT_INODE, NULL, 0)
135  audit_inode_child(new_dir, moved, a child being created )
调用者
名称描述
vfs_renamevfs_rename - rename a filesystem object*@old_dir: parent of source*@old_dentry: source*@new_dir: parent of destination*@new_dentry: destination*@delegated_inode: returns an inode needing a delegation break*@flags: rename flags