函数逻辑报告 |
Source Code:fs\fcntl.c |
Create Date:2022-07-29 10:36:00 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Remove a fasync entry. If successfully removed, return* positive and clear the FASYNC flag. If no entry exists,* do nothing and return 0.* NOTE! It is very important that the FASYNC flag always* match the state "is the filp on a fasync list".
函数原型:int fasync_remove_entry(struct file *filp, struct fasync_struct **fapp)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct file * | filp | |
struct fasync_struct ** | fapp |
870 | result等于0 |
872 | 加自旋锁 |
873 | 加自旋锁 |
878 | write_lock_irq( & fa_lock) |
879 | fa_file = NULL |
880 | write_unlock_irq( & fa_lock) |
882 | fp等于 singly linked list |
885 | result等于1 |
886 | 退出 |
888 | 自旋锁解锁 |
889 | 自旋锁解锁 |
890 | 返回:result |
名称 | 描述 |
---|---|
fasync_helper | async_helper() is used by almost all character device drivers* to set up the fasync queue, and for regular files by the file* lease code. It returns negative on error, 0 if it did no changes* and positive if it added/deleted the entry. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |