函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Notify this @dir inode about a change in the directory entry @dentry.* Unlike fsnotify_parent(), the event will be reported regardless of the* FS_EVENT_ON_CHILD mask on the parent inode.

函数原型:static inline int fsnotify_dirent(struct inode *dir, struct dentry *dentry, __u32 mask)

返回类型:int

参数:

类型参数名称
struct inode *dir
struct dentry *dentry
__u32mask
29  返回:fsnotify(dir, mask, 获得目录项的索引节点, FSNOTIFY_EVENT_INODE, & d_name, 0)
调用者
名称描述
fsnotify_createsnotify_create - 'name' was linked in
fsnotify_unlinksnotify_unlink - 'name' was unlinked* Caller must make sure that dentry->d_name is stable.
fsnotify_mkdirsnotify_mkdir - directory 'name' was created
fsnotify_rmdirsnotify_rmdir - directory 'name' was removed* Caller must make sure that dentry->d_name is stable.