| Function report | 
| Source Code: fs\file.c | Create Date:2022-07-28 20:08:31 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Install a file pointer in the fd array.* The VFS is full of places where we drop the files lock between* setting the open_fds bitmap and installing the file in the file* array. At any such point, we are vulnerable to a dup2() race
Proto:void __fd_install(struct files_struct *files, unsigned int fd, struct file *file)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct files_struct * | files | |
| unsigned int | fd | |
| struct file * | file | 
| 597 | fdt = files_fdtable(files) | 
| 598 | BUG_ON( current fd array [fd] != NULL) | 
| 601 | Return | 
| 604 | smp_rmb() | 
| 606 | BUG_ON( current fd array [fd] != NULL) | 
| Name | Describe | 
|---|---|
| fd_install | 
| 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 |