函数逻辑报告 |
Source Code:fs\namei.c |
Create Date:2022-07-29 10:34:58 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:must be paired with terminate_walk()
函数原型:static const char *path_init(struct nameidata *nd, unsigned flags)
返回类型:char
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct nameidata * | nd | |
| unsigned | flags |
| 2161 | s等于 pointer to actual string |
| 2163 | 如果非s则flags与等于RCU pathwalk mode; semi-internal 的反 |
| 2169 | flags等于flags按位或LOOKUP_JUMPED按位或rnal use only |
| 2170 | depth等于0 |
| 2171 | 如果flags按位与LOOKUP_ROOT则 |
| 2174 | 如果s且此条件成立可能性小(为编译器优化)(!d_can_lookup(root))则返回:错误号 |
| 2177 | path.dentry.d_inode 等于inode |
| 2178 | 如果flags按位与RCU pathwalk mode; semi-internal 则 |
| 2182 | 否则 |
| 2185 | 返回:s |
| 2188 | mnt = NULL |
| 2189 | mnt = NULL |
| 2190 | dentry = NULL |
| 2193 | 如果s恒等于'/'则 |
| 2199 | 如果flags按位与RCU pathwalk mode; semi-internal 则 |
| 2203 | 循环 |
| 2209 | 否则 |
| 2210 | get_fs_pwd(fs, & path) |
| 2211 | path.dentry.d_inode 等于d_inode |
| 2213 | 返回:s |
| 2214 | 否则 |
| 2224 | 如果s且此条件成立可能性小(为编译器优化)(!d_can_lookup(dentry))则 |
| 2230 | 如果flags按位与RCU pathwalk mode; semi-internal 则 |
| 2231 | path.dentry.d_inode 等于d_inode |
| 2233 | 否则 |
| 2235 | path.dentry.d_inode 等于d_inode |
| 2238 | 返回:s |
| 名称 | 描述 |
|---|---|
| path_lookupat | Returns 0 and nd will be valid on success; Retuns error, otherwise. |
| path_parentat | Returns 0 and nd will be valid on success; Retuns error, otherwise. |
| path_mountpoint | path_mountpoint - look up a path to be umounted*@nd: lookup context*@flags: lookup flags*@path: pointer to container for result* Look up the given name, but don't attempt to revalidate the last component. |
| path_openat |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |