函数逻辑报告 |
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 - 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
函数原型:static struct file *alloc_file(const struct path *path, int flags, const struct file_operations *fop)
返回类型:struct file
参数:
类型 | 参数 | 名称 |
---|---|---|
const struct path * | path | |
int | flags | |
const struct file_operations * | fop |
201 | 如果f_mode按位与le is open for reading 且此条件成立可能性大(为编译器优化)(read || read_iter)则f_mode或等于Has read method(s) |
204 | 如果f_mode按位与le is open for writing 且此条件成立可能性大(为编译器优化)(write || write_iter)则f_mode或等于Has write method(s) |
207 | f_mode或等于FMODE_OPENED |
209 | 如果f_mode按位与le is open for reading 按位或le is open for writing 的值的值恒等于le is open for reading 则i_readcount_inc( Where the name belongs to - NULL is * negative ) |
211 | 返回:file |
名称 | 描述 |
---|---|
alloc_file_pseudo | |
alloc_file_clone |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |