函数逻辑报告 | 
Source Code:fs\file.c | 
Create Date:2022-07-29 10:38:42 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:alloc_fdtable
函数原型:static struct fdtable *alloc_fdtable(unsigned int nr)
返回类型:struct fdtable
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| unsigned int | nr | 
| 97 | nr除等于1024除*的长度 | 
| 99 | nr乘等于1024除*的长度 | 
| 108 | 如果此条件成立可能性小(为编译器优化)(nr > sysctl_nr_open)则nr等于sysctl_nr_open减1按位或BITS_PER_LONG减1的值加1 | 
| 115 | data等于kvmalloc_array(nr, *的长度, 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 | 返回:fdt | 
| 133 | out_arr : | 
| 135 | out_fdt : | 
| 136 | 释放内存 | 
| 137 | out : | 
| 138 | 返回:NULL | 
| 名称 | 描述 | 
|---|---|
| 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. | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |