函数逻辑报告 | 
Source Code:fs\namespace.c | 
Create Date:2022-07-29 10:39:34 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:copy_tree
函数原型:struct mount *copy_tree(struct mount *mnt, struct dentry *dentry, int flag)
返回类型:struct mount
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct mount * | mnt | |
| struct dentry * | dentry | |
| int | flag | 
| 1754 | 如果非flag按位与CL_COPY_UNBINDABLE的值且IS_MNT_UNBINDABLE(mnt)则返回:错误号 | 
| 1757 | 如果非flag按位与CL_COPY_MNT_NS_FILE的值且is_mnt_ns_file(dentry)则返回:错误号 | 
| 1764 | mnt_mountpoint等于mnt_mountpoint | 
| 1769 | 如果非是子目录则继续下一循环 | 
| 1773 | 如果非flag按位与CL_COPY_UNBINDABLE的值且IS_MNT_UNBINDABLE(s)则 | 
| 1784 | 如果非flag按位与CL_COPY_MNT_NS_FILE的值且is_mnt_ns_file( root of the mounted tree )则 | 
| 1786 | s等于skip_mnt_tree(s) | 
| 1787 | 继续下一循环 | 
| 1789 | 当p不等于mnt_parent循环 | 
| 1790 | p等于mnt_parent | 
| 1791 | q等于mnt_parent | 
| 1795 | q等于clone_mnt(p, root of the mounted tree , flag) | 
| 1798 | lock_mount_hash() | 
| 1799 | 添加链表项 | 
| 1801 | unlock_mount_hash() | 
| 1804 | 返回:res | 
| 1805 | out : | 
| 1806 | 如果res则 | 
| 1807 | lock_mount_hash() | 
| 1809 | unlock_mount_hash() | 
| 1811 | 返回:q | 
| 名称 | 描述 | 
|---|---|
| collect_mounts | Caller should check returned pointer for errors | 
| __do_loopback | |
| copy_mnt_ns | |
| propagate_one | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |