Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:send_to_group

Proto:static int send_to_group(struct inode *to_tell, __u32 mask, const void *data, int data_is, unsigned int cookie, const struct qstr *file_name, struct fsnotify_iter_info *iter_info)

Type:int

Parameter:

TypeParameterName
struct inode *to_tell
__u32mask
const void *data
intdata_is
unsigned intcookie
const struct qstr *file_name
struct fsnotify_iter_info *iter_info
192  struct fsnotify_group * group = NULL
193  test_mask = mask & Events that can be reported to backends
194  marks_mask = 0
195  marks_ignored_mask = 0
199  If WARN_ON(!report_mask) Then Return 0
203  If mask & File was modified Then
205  If Not fsnotify_iter_should_report_type(iter_info, type) Then Continue
207  mark = marks[type]
208  If mark && Not ( flags [mark->lock] & FSNOTIFY_MARK_FLAG_IGNORED_SURV_MODIFY) Then Events types to ignore [mark->lock, group->mark_mutex] = 0
215  If Not fsnotify_iter_should_report_type(iter_info, type) Then Continue
217  mark = marks[type]
219  If mark Then
226  pr_debug("%s: group=%p to_tell=%p mask=%x marks_mask=%x marks_ignored_mask=%x data=%p data_is=%d cookie=%d\n", __func__, group, to_tell, mask, marks_mask, marks_ignored_mask, data, data_is, cookie)
231  If Not ( test_mask & marks_mask & ~marks_ignored_mask) Then Return 0
234  Return handle_event(group, to_tell, mask, data, data_is, file_name, cookie, iter_info)
Caller
NameDescribe
fsnotifyThis is the main call to fsnotify. The VFS calls into hook specific functions* in linux/fsnotify.h. Those functions then in turn call here. Here will call* out to all of the registered fsnotify_group. Those groups can then use the