| 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:Expand the file descriptor table.* This function will allocate a new fdtable and both fd array and fdset, of* the given size.* Return <0 error code on error; 1 on successful completion.
Proto:static int expand_fdtable(struct files_struct *files, unsigned int nr)__releases(files->file_lock) __acquires(files->file_lock)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct files_struct * | files | |
| unsigned int | nr | 
| 155 | new_fdt = alloc_fdtable(nr) | 
| 160 | If atomic_read( & ad mostly part) > 1 Then synchronize_rcu - wait until a grace period has elapsed | 
| 170 | If Value for the false possibility is greater at compile time(max_fds <= nr) Then | 
| 171 | __free_fdtable(new_fdt) | 
| 172 | Return -EMFILE | 
| 174 | cur_fdt = files_fdtable(files) | 
| 178 | If cur_fdt != fdtab Then Post an RCU callback to be invoked after the end of an RCU grace* period. But since we have but one CPU, that would be after any* quiescent state. | 
| 181 | smp_wmb() | 
| 182 | Return 1 | 
| Name | Describe | 
|---|---|
| expand_files | Expand files.* This function will expand the file structures, if the requested size exceeds* the current capacity and there is room for expansion.* Return <0 error code on error; 0 when nothing done; 1 when files were | 
| 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 |