Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\fsnotify.h Create Date:2022-07-28 11:57:19
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:snotify_move - file old_name at old_dir was moved to new_name at new_dir

Proto: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)

Type:void

Parameter:

TypeParameterName
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  If old_dir == new_dir Then old_dir_mask |= le renamed
119  If isdir Then
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  If target Then snotify_link_count - inode's link count changed
133  If source Then fsnotify(source, mask, source, FSNOTIFY_EVENT_INODE, NULL, 0)
135  audit_inode_child(new_dir, moved, a child being created )
Caller
NameDescribe
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