函数逻辑报告 |
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 |
函数名称:Insert a new entry into the fasync list. Return the pointer to the* old one if we didn't use the new one.* NOTE! It is very important that the FASYNC flag always* match the state "is the filp on a fasync list".
函数原型:struct fasync_struct *fasync_insert_entry(int fd, struct file *filp, struct fasync_struct **fapp, struct fasync_struct *new)
返回类型:struct fasync_struct
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| int | fd | |
| struct file * | filp | |
| struct fasync_struct ** | fapp | |
| struct fasync_struct * | new |
| 919 | 加自旋锁 |
| 920 | 加自旋锁 |
| 931 | rwlock_init( & fa_lock) |
| 932 | magic等于FASYNC_MAGIC |
| 935 | singly linked list 等于fapp |
| 939 | out : |
| 940 | 自旋锁解锁 |
| 941 | 自旋锁解锁 |
| 942 | 返回:fa |
| 名称 | 描述 |
|---|---|
| fasync_add_entry | Add a fasync entry. Return negative on error, positive if* added, and zero if did nothing but change an existing one. |
| lease_setup |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |