函数逻辑报告 | 
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 | 
函数名称:__alloc_file
函数原型:static struct file *__alloc_file(int flags, const struct cred *cred)
返回类型:struct file
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| int | flags | |
| const struct cred * | cred | 
| 102 | 如果此条件成立可能性小(为编译器优化)(!f)则返回:错误号 | 
| 106 | error等于security_file_alloc(f) | 
| 107 | 如果此条件成立可能性小(为编译器优化)(error)则 | 
| 108 | file_free_rcu( & fu_rcuhead) | 
| 109 | 返回:错误号 | 
| 112 | atomic_long_set( & f_count, 1) | 
| 113 | rwlock_init( & lock) | 
| 115 | mutex_init - initialize the mutex*@mutex: the mutex to be initialized* Initialize the mutex to unlocked state.* It is not allowed to initialize an already locked mutex.( & f_pos_lock) | 
| 118 | f_mode等于OPEN_FMODE(flags) | 
| 121 | 返回:f | 
| 名称 | 描述 | 
|---|---|
| alloc_empty_file | Find an unused file structure and return a pointer to it | 
| alloc_empty_file_noaccount | Variant of alloc_empty_file() that doesn't check and modify nr_files.* Should not be used unless there's a very good reason to do so. | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |