Function report | 
Source Code:fs\notify\fsnotify.c | 
Create Date:2022-07-28 20:16:03 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name: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
Proto:int fsnotify(struct inode *to_tell, __u32 mask, const void *data, int data_is, const struct qstr *file_name, unsigned int cookie)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct inode * | to_tell | |
| __u32 | mask | |
| const void * | data | |
| int | data_is | |
| const struct qstr * | file_name | |
| unsigned int | cookie | 
| 321 | struct fsnotify_iter_info iter_info = {} | 
| 325 | ret = 0 | 
| 328 | If data_is == FSNOTIFY_EVENT_PATH Then | 
| 329 | mnt = real_mount(mnt) | 
| 330 | mnt_or_sb_mask |= mnt_fsnotify_mask | 
| 333 | If mask & This inode cares about things that happen to its children. Always set for* dnotify and inotify. Then mnt_or_sb_mask = 0 | 
| 343 | If Not i_fsnotify_marks && Not s_fsnotify_marks && ( Not mnt || Not mnt_fsnotify_marks ) Then Return 0 | 
| 351 | If Not (mask & File was modified ) && Not (test_mask & (i_fsnotify_mask | mnt_or_sb_mask)) Then Return 0 | 
| 361 | If mnt Then | 
| 375 | If ret && mask & ALL_FSNOTIFY_PERM_EVENTS Then Go to out | 
| 380 | ret = 0 | 
| 381 | out : | 
| 384 | Return ret | 
| Name | Describe | 
|---|---|
| fsnotify_unmount_inodes | snotify_unmount_inodes - an sb is unmounting. handle any watched inodes.*@sb: superblock being unmounted.* Called during unmount with no locks held, so needs to be safe against* concurrent modifiers. We temporarily drop sb->s_inode_list_lock and CAN block. | 
| __fsnotify_parent | Notify this dentry's parent about a child's events. | 
| 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  |