| 函数逻辑报告 | 
| Source Code: fs\notify\dnotify\dnotify.c | Create Date:2022-07-29 10:48:46 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称: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
函数原型:void dnotify_flush(struct file *filp, fl_owner_t id)
返回类型:void
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| 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 | 如果非fsn_mark则返回 | 
| 159 | mutex_lock( & protect marks_list ) | 
| 161 | 加自旋锁 | 
| 168 | 退出 | 
| 173 | 自旋锁解锁 | 
| 177 | 如果(dn == NULL)则 | 
| 179 | free = true | 
| 184 | 如果free则Free fsnotify mark | 
| 名称 | 描述 | 
|---|---|
| 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. | 
| 源代码转换工具 开放的插件接口 | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |