Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Check if 2 events contain the same information.

Proto:static bool event_compare(struct fsnotify_event *old_fsn, struct fsnotify_event *new_fsn)

Type:bool

Parameter:

TypeParameterName
struct fsnotify_event *old_fsn
struct fsnotify_event *new_fsn
37  old = INOTIFY_E(old_fsn)
38  new = INOTIFY_E(new_fsn)
39  If mask & last inotify event here Then Return false
41  If mask == mask && either the inode the event happened to or its parent == either the inode the event happened to or its parent && name_len == name_len && ( Not name_len || Not strcmp(name, name) ) Then Return true
46  Return false
Caller
NameDescribe
inotify_merge