函数逻辑报告 |
Source Code:kernel\nsproxy.c |
Create Date:2022-07-27 10:32:04 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称: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.
函数原型:static struct nsproxy *create_new_namespaces(unsigned long flags, struct task_struct *tsk, struct user_namespace *user_ns, struct fs_struct *new_fs)
返回类型:struct nsproxy
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| unsigned long | flags | |
| struct task_struct * | tsk | |
| struct user_namespace * | user_ns | |
| struct fs_struct * | new_fs |
| 67 | new_nsp等于create_nsproxy() |
| 72 | 如果是错误则 |
| 77 | uts_ns等于copy_utsname(flags, user_ns, uts_ns) |
| 78 | 如果是错误则 |
| 84 | 如果是错误则 |
| 91 | 如果是错误则 |
| 96 | cgroup_ns等于copy_cgroup_ns(flags, user_ns, cgroup_ns) |
| 98 | 如果是错误则 |
| 100 | 转到:out_cgroup |
| 103 | net_ns等于copy_net_ns(flags, user_ns, net_ns) |
| 104 | 如果是错误则 |
| 109 | 返回:new_nsp |
| 111 | out_net : |
| 112 | put_cgroup_ns(cgroup_ns) |
| 113 | out_cgroup : |
| 116 | out_pid : |
| 117 | 如果ipc_ns则put_ipc_ns(ipc_ns) |
| 119 | out_ipc : |
| 120 | 如果uts_ns则put_uts_ns(uts_ns) |
| 122 | out_uts : |
| 123 | 如果mnt_ns则put_mnt_ns(mnt_ns) |
| 125 | out_ns : |
| 126 | 释放一个对象 |
| 127 | 返回:错误号 |
| 名称 | 描述 |
|---|---|
| copy_namespaces | 复制名称空间 |
| unshare_nsproxy_namespaces | Called from unshare. Unshare all the namespaces part of nsproxy.* On success, returns the new nsproxy. |
| SYSCALL_DEFINE2 |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |