函数逻辑报告 |
Source Code:fs\namei.c |
Create Date:2022-07-29 10:35:03 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Attempt to atomically look up, create and open a file from a negative* dentry
函数原型:static int atomic_open(struct nameidata *nd, struct dentry *dentry, struct path *path, struct file *file, const struct open_flags *op, int open_flag, umode_t mode)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct nameidata * | nd | |
| struct dentry * | dentry | |
| struct path * | path | |
| struct file * | file | |
| const struct open_flags * | op | |
| int | open_flag | |
| umode_t | mode |
| 3004 | struct dentry * const DENTRY_NOT_SET = (void * ) - 1UL |
| 3011 | 如果flags按位与quire a directory 则open_flag或等于O_DIRECTORY |
| 3014 | dentry等于DENTRY_NOT_SET |
| 3016 | error等于atomic_open(dir, dentry, file, open_to_namei_flags(open_flag), mode) |
| 3018 | d_lookup_done(dentry) |
| 3019 | 如果非error则 |
| 3020 | 如果f_mode按位与FMODE_OPENED则 |
| 3026 | 如果f_mode按位与FMODE_CREATED则 |
| 3034 | 否则如果WARN_ON(dentry == DENTRY_NOT_SET)则 |
| 3036 | 否则 |
| 3053 | 返回:error |
| 名称 | 描述 |
|---|---|
| lookup_open | Look up and maybe create and open the last component |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |