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 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
Proto:static int expand_files(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 |
198 | expanded = 0 |
200 | repeat : |
201 | fdt = files_fdtable(files) |
208 | If nr >= sysctl_nr_open Then Return -EMFILE |
213 | expanded = 1 |
216 | Go to repeat |
220 | resize_in_progress = true |
222 | resize_in_progress = false |
224 | wake_up_all( & resize_wait) |
225 | Return expanded |
Name | Describe |
---|---|
__alloc_fd | allocate a file descriptor, mark it busy. |
replace_fd | |
ksys_dup3 |
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 |