函数逻辑报告 |
Source Code:fs\notify\fsnotify.c |
Create Date:2022-07-29 10:47:33 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:send_to_group
函数原型: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)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
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 |
192 | struct fsnotify_group * group = NULL |
194 | marks_mask等于0 |
195 | marks_ignored_mask等于0 |
199 | 如果WARN_ON(!report_mask)则返回:0 |
203 | 如果mask按位与File was modified 则 |
205 | 如果非fsnotify_iter_should_report_type(iter_info, type)则继续下一循环 |
208 | 如果mark且非 flags [mark->lock] 按位与FSNOTIFY_MARK_FLAG_IGNORED_SURV_MODIFY的值则 Events types to ignore [mark->lock, group->mark_mutex] 等于0 |
215 | 如果非fsnotify_iter_should_report_type(iter_info, type)则继续下一循环 |
219 | 如果mark则 |
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 | 如果非test_mask按位与marks_mask按位与marks_ignored_mask的反的值则返回:0 |
名称 | 描述 |
---|---|
fsnotify | This 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 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |