函数逻辑报告 |
Source Code:fs\file_table.c |
Create Date:2022-07-29 10:31:54 |
| Last Modify:2020-03-18 10:20:10 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Find an unused file structure and return a pointer to it
函数原型:struct file *alloc_empty_file(int flags, const struct cred *cred)
返回类型:struct file
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| int | flags | |
| const struct cred * | cred |
| 147 | 如果percpu_counter_sum_positive( & nr_files)大于等于unable 则转到:over |
| 151 | f等于__alloc_file(flags, cred) |
| 152 | 如果非是错误则percpu_counter_inc( & nr_files) |
| 155 | 返回:f |
| 157 | over : |
| 160 | 打印信息("VFS: file-max limit %lu reached\n", Return the maximum number of open files in the system) |
| 163 | 返回:错误号 |
| 名称 | 描述 |
|---|---|
| alloc_file | alloc_file - allocate and initialize a 'struct file'*@path: the (dentry, vfsmount) pair for the new file*@flags: O_... flags with which the new file will be opened*@fop: the 'struct file_operations' for the new file |
| path_openat |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |