| 函数逻辑报告 | 
| Source Code: kernel\cgroup\namespace.c | Create Date:2022-07-27 12:14:16 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:copy_cgroup_ns
函数原型:struct cgroup_namespace *copy_cgroup_ns(unsigned long flags, struct user_namespace *user_ns, struct cgroup_namespace *old_ns)
返回类型:struct cgroup_namespace
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| unsigned long | flags | |
| struct user_namespace * | user_ns | |
| struct cgroup_namespace * | old_ns | 
| 60 | 如果非flags按位与New cgroup namespace 的值则 | 
| 61 | get_cgroup_ns(old_ns) | 
| 62 | 返回:old_ns | 
| 66 | 如果非ns_capable(user_ns, Allow setting zone reclaim policy )则返回:错误号 | 
| 74 | spin_lock_irq( & css_set_lock) | 
| 75 | cset等于获得任务的css_set | 
| 77 | spin_unlock_irq( & css_set_lock) | 
| 79 | new_ns等于alloc_cgroup_ns() | 
| 80 | 如果是错误则 | 
| 86 | user_ns等于get_user_ns(user_ns) | 
| 90 | 返回: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 插件可实现:逻辑报告 代码生成和批量转换代码 |