函数逻辑报告 |
Source Code:fs\namespace.c |
Create Date:2022-07-29 10:39:44 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:copy_mnt_ns
函数原型:struct mnt_namespace *copy_mnt_ns(unsigned long flags, struct mnt_namespace *ns, struct user_namespace *user_ns, struct fs_struct *new_fs)
返回类型:struct mnt_namespace
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| unsigned long | flags | |
| struct mnt_namespace * | ns | |
| struct user_namespace * | user_ns | |
| struct fs_struct * | new_fs |
| 3224 | 如果此条件成立可能性大(为编译器优化)(!(flags & 在新的namespace启动子进程))则 |
| 3225 | get_mnt_ns(ns) |
| 3226 | 返回:ns |
| 3231 | new_ns等于alloc_mnt_ns(user_ns, false) |
| 3235 | namespace_lock() |
| 3237 | copy_flags等于CL_COPY_UNBINDABLE按位或CL_EXPIRE |
| 3238 | 如果user_ns不等于user_ns则copy_flags或等于CL_SHARED_TO_SLAVE |
| 3240 | new等于copy_tree(old, root of the mounted tree , copy_flags) |
| 3241 | 如果是错误则 |
| 3252 | 添加链表项 |
| 3262 | containing namespace 等于new_ns |
| 3263 | # of mounts in the namespace 自加 |
| 3264 | 如果new_fs则 |
| 3278 | 当 root of the mounted tree 不等于 root of the mounted tree 循环 |
| 3281 | namespace_unlock() |
| 3288 | 返回:new_ns |
| 名称 | 描述 |
|---|---|
| create_new_namespaces | Create new nsproxy and all of its the associated namespaces.* Return the newly created nsproxy. Do not attach this to the task,* leave it to the caller to do proper locking and attach it to task. |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |