| Function report | 
| Source Code: fs\notify\dnotify\dnotify.c | Create Date:2022-07-28 20:17:09 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Called every time a file is closed. Looks first for a dnotify mark on the* inode. If one is found run all of the ->dn structures attached to that* mark for one relevant to this process closing the file and remove that* dnotify_struct
Proto:void dnotify_flush(struct file *filp, fl_owner_t id)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct file * | filp | |
| fl_owner_t | id | 
| 148 | bool free = false | 
| 150 | inode = file_inode(filp) | 
| 154 | fsn_mark = Given a list of marks, find the mark associated with given group. If found* take a reference to that mark and return it, else return NULL. | 
| 155 | If Not fsn_mark Then Return | 
| 159 | mutex_lock( & protect marks_list ) | 
| 168 | Break | 
| 177 | If (dn == NULL) Then | 
| 179 | free = true | 
| 184 | If free Then Free fsnotify mark | 
| Name | Describe | 
|---|---|
| fcntl_dirnotify | When a process calls fcntl to attach a dnotify watch to a directory it ends* up here. Allocate both a mark for fsnotify to add and a dnotify_struct to be* attached to the fsnotify_mark. | 
| 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 |