函数逻辑报告 |
Source Code:fs\notify\fanotify\fanotify.c |
Create Date:2022-07-29 10:49:49 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:fanotify_alloc_event
函数原型:struct fanotify_event *fanotify_alloc_event(struct fsnotify_group *group, struct inode *inode, unsigned int mask, const void *data, int data_type, __kernel_fsid_t *fsid)
返回类型:struct fanotify_event
参数:
类型 | 参数 | 名称 |
---|---|---|
struct fsnotify_group * | group | |
struct inode * | inode | |
unsigned int | mask | |
const void * | data | |
int | data_type | |
__kernel_fsid_t * | fsid |
284 | struct fanotify_event * event = NULL |
285 | gfp等于GFP_KERNEL_ACCOUNT |
286 | id等于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: |
294 | 如果 maximum events allowed on the list 恒等于UINT_MAX则gfp或等于__GFP_NOFAIL |
296 | 否则gfp或等于__GFP_RETRY_MAYFAIL |
302 | 如果fanotify_is_perm_event(mask)则 |
309 | userspace answer to the event 等于0 |
311 | 转到:init |
316 | init : |
316 | fsnotify_init_event( & fse, inode) |
319 | 如果FAN_GROUP_FLAG(group, vent->pid is thread id )则pid等于get_pid(task_pid(当前进程)) |
323 | fh_len等于0 |
324 | 如果id且FAN_GROUP_FLAG(group, Report unique file id )则 |
327 | 否则如果data_type恒等于FSNOTIFY_EVENT_PATH则 |
331 | 否则 |
333 | mnt = NULL |
334 | dentry = NULL |
336 | out : |
338 | 返回:event |
名称 | 描述 |
---|---|
fanotify_handle_event | |
SYSCALL_DEFINE2 | anotify syscalls |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |