函数逻辑报告 |
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 |
函数名称:do_move_mount
函数原型:static int do_move_mount(struct path *old_path, struct path *new_path)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct path * | old_path | |
struct path * | new_path |
2608 | mp等于lock_mount(new_path) |
2612 | old等于real_mount(mnt) |
2613 | p等于real_mount(mnt) |
2614 | parent等于mnt_parent |
2615 | attached等于mnt_has_parent(old) |
2616 | old_mp等于 where is it mounted |
2617 | ns等于 containing namespace |
2625 | 如果非is_mounted( & mnt)则转到:out |
2632 | 如果mnt_flags按位与MNT_LOCKED则转到:out |
2644 | 如果attached且IS_MNT_SHARED(parent)则转到:out |
2650 | 如果IS_MNT_SHARED(p)且tree_contains_unbindable(old)则转到:out |
2655 | 以mnt_has_parent(p)循环如果p恒等于old则 |
2657 | 转到:out |
2666 | 删除链表项并重新初始化 |
2669 | out : |
2670 | unlock_mount(mp) |
2671 | 如果非err则 |
2672 | 如果attached则mntput_no_expire(parent) |
2674 | 否则free_mnt_ns(ns) |
2677 | 返回:err |
名称 | 描述 |
---|---|
do_move_mount_old | |
SYSCALL_DEFINE5 | Move a mount from one place to another. In combination with* fsopen()/fsmount() this is used to install a new mount and in combination* with open_tree(OPEN_TREE_CLONE [| AT_RECURSIVE]) it can be used to copy* a mount subtree. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |