函数逻辑报告 |
Source Code:fs\file.c |
Create Date:2022-07-29 10:38:45 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:variant of __close_fd that gets a ref on the file for later fput
函数原型:int __close_fd_get_file(unsigned int fd, struct file **res)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| unsigned int | fd | |
| struct file ** | res |
| 653 | 加自旋锁 |
| 654 | fdt等于files_fdtable(files) |
| 655 | 如果fd大于等于max_fds则转到:out_unlock |
| 657 | file等于 current fd array [fd] |
| 658 | 如果非file则转到:out_unlock |
| 661 | __put_unused_fd(files, fd) |
| 662 | 自旋锁解锁 |
| 667 | out_unlock : |
| 668 | 自旋锁解锁 |
| 669 | * res = NULL |
| 670 | 返回:负ENOENT |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |