| Function report | 
| Source Code: fs\file.c | Create Date:2022-07-28 20:08:32 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:variant of __close_fd that gets a ref on the file for later fput
Proto:int __close_fd_get_file(unsigned int fd, struct file **res)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| unsigned int | fd | |
| struct file ** | res | 
| 654 | fdt = files_fdtable(files) | 
| 655 | If fd >= max_fds Then Go to out_unlock | 
| 657 | file = current fd array [fd] | 
| 658 | If Not file Then Go to out_unlock | 
| 661 | __put_unused_fd(files, fd) | 
| 667 | out_unlock : | 
| 669 | * res = NULL | 
| 670 | Return -ENOENT | 
| 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 |