函数逻辑报告 | 
Source Code:kernel\pid_namespace.c | 
Create Date:2022-07-27 12:22:57 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:create_pid_namespace
函数原型:static struct pid_namespace *create_pid_namespace(struct user_namespace *user_ns, struct pid_namespace *parent_pid_ns)
返回类型:struct pid_namespace
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct user_namespace * | user_ns | |
| struct pid_namespace * | parent_pid_ns | 
| 103 | 如果(分配pid的slab的地址 == NULL)则转到:out_free_idr | 
| 106 | err等于ns_alloc_inum( & ns) | 
| 107 | 如果err则转到:out_free_idr | 
| 109 | ops等于pidns_operations | 
| 111 | 初始化对象 | 
| 113 | 父进程空间等于get_pid_ns(parent_pid_ns) | 
| 114 | user_ns等于get_user_ns(user_ns) | 
| 117 | INIT_WORK( & proc_work, proc_cleanup_work) | 
| 119 | 返回:ns | 
| 121 | out_free_idr : | 
| 123 | kmem_cache_free(pid_ns_cachep, ns) | 
| 124 | out_dec : | 
| 126 | out : | 
| 127 | 返回:错误号 | 
| 名称 | 描述 | 
|---|---|
| copy_pid_ns | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |