函数逻辑报告 |
Source Code:fs\namei.c |
Create Date:2022-07-29 10:34:53 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Handle a dentry that is managed in some way.* - Flagged for transit management (autofs)* - Flagged as mountpoint* - Flagged as automount point* This may only be called in refwalk mode.* On success path->dentry is known positive.
函数原型:static int follow_managed(struct path *path, struct nameidata *nd)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct path * | path | |
struct nameidata * | nd |
1222 | bool need_mntput = false |
1223 | ret等于0 |
1232 | 如果flags按位与manage transit from this dirent 则 |
1236 | flags等于smp_load_acquire( & protected by d_lock ) |
1242 | 如果flags按位与s a mountpoint 则 |
1243 | mounted等于lookup_mnt(path) |
1244 | 如果mounted则 |
1261 | 如果flags按位与handle automount on this dir 则 |
1262 | ret等于Perform an automount* - return -EISDIR to tell follow_managed() to stop and return the path we* were called with. |
1265 | 继续下一循环 |
1269 | 退出 |
1272 | 如果need_mntput且mnt恒等于mnt则mntput(mnt) |
1274 | 如果need_mntput则flags或等于LOOKUP_JUMPED |
1278 | 如果ret大于0且此条件成立可能性小(为编译器优化)(d_flags_negative(flags))则ret等于负ENOENT |
1280 | 如果此条件成立可能性小(为编译器优化)(ret < 0)则path_put_conditional(path, nd) |
1282 | 返回:ret |
名称 | 描述 |
---|---|
lookup_fast | |
walk_component | |
handle_lookup_down | |
do_last | Handle the last step of open() |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |