Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\notify\fanotify\fanotify.c Create Date:2022-07-28 20:18:07
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:The inode to use as identifier when reporting fid depends on the event.* Report the modified directory inode on dirent modification events.* Report the "victim" inode otherwise.* For example:

Proto:static struct inode *fanotify_fid_inode(struct inode *to_tell, unsigned int event_mask, const void *data, int data_type)

Type:struct inode

Parameter:

TypeParameterName
struct inode *to_tell
unsigned intevent_mask
const void *data
intdata_type
270  If event_mask & Directory entry modification events - reported only to directory* where entry is modified and not to a watching parent.* The watching parent may get an FS_ATTRIB|FS_EVENT_ON_CHILD event* when a directory entry inside a child subdir changes. Then Return to_tell
272  Else if data_type == FSNOTIFY_EVENT_INODE Then Return data
274  Else if data_type == FSNOTIFY_EVENT_PATH Then Return d_inode - Get the actual inode of this dentry*@dentry: The dentry to query* This is the helper normal filesystems should use to get at their own inodes* in their own dentries and ignore the layering superimposed upon them.
276  Return NULL
Caller
NameDescribe
fanotify_alloc_event