| Function report | 
| 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 activity | Download SCCT | Chinese | 
Name:fanotify_alloc_event
Proto: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)
Type:struct fanotify_event
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| 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 | 
| 294 | If maximum events allowed on the list == UINT_MAX Then gfp |= __GFP_NOFAIL | 
| 296 | Else gfp |= __GFP_RETRY_MAYFAIL | 
| 302 | If fanotify_is_perm_event(mask) Then | 
| 309 | userspace answer to the event = 0 | 
| 311 | Go to init | 
| 316 | init : | 
| 316 | fsnotify_init_event( & fse, inode) | 
| 319 | If FAN_GROUP_FLAG(group, vent->pid is thread id ) Then pid = get_pid(task_pid(current process)) | 
| 321 | Else pid = get_pid(task_tgid(current process)) | 
| 323 | fh_len = 0 | 
| 324 | If id && FAN_GROUP_FLAG(group, Report unique file id ) Then | 
| 327 | Else if data_type == FSNOTIFY_EVENT_PATH Then | 
| 331 | Else | 
| 333 | mnt = NULL | 
| 334 | dentry = NULL | 
| 336 | out : | 
| 338 | Return event | 
| Name | Describe | 
|---|---|
| fanotify_handle_event | |
| SYSCALL_DEFINE2 | anotify syscalls | 
| Source code conversion tool public plug-in interface | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |