函数逻辑报告 |
Source Code:fs\namespace.c |
Create Date:2022-07-29 10:39:40 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:add a mount into a namespace's mount tree
函数原型:static int do_add_mount(struct mount *newmnt, struct path *path, int mnt_flags)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct mount * | newmnt | |
| struct path * | path | |
| int | mnt_flags |
| 2706 | mnt_flags与等于MNT_INTERNAL_FLAGS的反 |
| 2708 | mp等于lock_mount(path) |
| 2712 | parent等于real_mount(mnt) |
| 2714 | 如果此条件成立可能性小(为编译器优化)(!check_mnt(parent))则 |
| 2716 | 如果非mnt_flags按位与MNT_SHRINKABLE的值则转到:unlock |
| 2719 | 如果非 containing namespace 则转到:unlock |
| 2725 | 如果mnt_sb恒等于 pointer to superblock 且mnt_root恒等于dentry则转到:unlock |
| 2730 | 如果d_is_symlink( root of the mounted tree )则转到:unlock |
| 2734 | err等于graft_tree(newmnt, parent, mp) |
| 2736 | unlock : |
| 2737 | unlock_mount(mp) |
| 2738 | 返回:err |
| 名称 | 描述 |
|---|---|
| do_new_mount_fc | Create a new mount using a superblock configuration and request it* be added to the namespace tree. |
| finish_automount |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |