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:alloc_fdtable
Proto:static struct fdtable *alloc_fdtable(unsigned int nr)
Type:struct fdtable
Parameter:
Type | Parameter | Name |
---|---|---|
unsigned int | nr |
97 | nr /= 1024 / size of * |
99 | nr *= 1024 / size of * |
108 | If Value for the false possibility is greater at compile time(nr > sysctl_nr_open) Then nr = ( sysctl_nr_open - 1 | BITS_PER_LONG - 1 ) + 1 |
111 | fdt = Allocation memory |
115 | data = kvmalloc_array(nr, size of * , GFP_KERNEL_ACCOUNT) |
118 | current fd array = data |
126 | data += nr / BITS_PER_BYTE |
127 | close_on_exec = data |
128 | data += nr / BITS_PER_BYTE |
129 | full_fds_bits = data |
131 | Return fdt |
133 | out_arr : |
135 | out_fdt : |
137 | out : |
138 | Return NULL |
Name | Describe |
---|---|
expand_fdtable | 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. |
dup_fd | Allocate a new files structure and copy contents from the* passed in files structure.* errorp will be valid only when the returned files_struct is NULL. |
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 |