函数逻辑报告 | 
Source Code:fs\namespace.c | 
Create Date:2022-07-29 10:39:29 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:clone_mnt
函数原型:static struct mount *clone_mnt(struct mount *old, struct dentry *root, int flag)
返回类型:struct mount
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct mount * | old | |
| struct dentry * | root | |
| int | flag | 
| 1019 | sb等于 pointer to superblock | 
| 1027 | 如果flag按位与CL_SLAVE按位或CL_PRIVATE按位或CL_SHARED_TO_SLAVE的值则 peer group identifier 等于0 | 
| 1029 | 否则 peer group identifier 等于 peer group identifier | 
| 1032 | 如果flag按位与CL_MAKE_SHARED且非 peer group identifier 则 | 
| 1039 | mnt_flags与等于MNT_WRITE_HOLD按位或MNT_MARKED按位或MNT_INTERNAL的值的反 | 
| 1041 | atomic_inc( & s_active) | 
| 1042 | pointer to superblock 等于sb | 
| 1043 | root of the mounted tree 等于获得目录项引用 | 
| 1045 | mnt_parent等于mnt | 
| 1046 | lock_mount_hash() | 
| 1047 | 添加链表项 | 
| 1048 | unlock_mount_hash() | 
| 1050 | 如果flag按位与CL_SLAVE或flag按位与CL_SHARED_TO_SLAVE且IS_MNT_SHARED(old)则 | 
| 1055 | 否则如果非flag按位与CL_PRIVATE的值则 | 
| 1056 | 如果flag按位与CL_MAKE_SHARED或IS_MNT_SHARED(old)则添加链表项 | 
| 1058 | 如果IS_MNT_SLAVE(old)则添加链表项 | 
| 1061 | 否则 | 
| 1062 | CLEAR_MNT_SHARED(mnt) | 
| 1064 | 如果flag按位与CL_MAKE_SHARED则set_mnt_shared(mnt) | 
| 1074 | 返回:mnt | 
| 1076 | out_free : | 
| 1077 | mnt_free_id(mnt) | 
| 1078 | free_vfsmnt(mnt) | 
| 1079 | 返回:错误号 | 
| 名称 | 描述 | 
|---|---|
| mnt_clone_internal | |
| copy_tree | |
| clone_private_mount | lone_private_mount - create a private clone of a path* This creates a new vfsmount, which will be the clone of @path. The new will* not be attached anywhere in the namespace and will be private (i.e. changes | 
| __do_loopback | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |