| Function report | 
| Source Code: kernel\pid_namespace.c | Create Date:2022-07-28 11:20:13 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:create_pid_namespace
Proto:static struct pid_namespace *create_pid_namespace(struct user_namespace *user_ns, struct pid_namespace *parent_pid_ns)
Type:struct pid_namespace
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct user_namespace * | user_ns | |
| struct pid_namespace * | parent_pid_ns | 
| 85 | If Not Returns true if @child is the same namespace or a descendant of*@ancestor. Then Go to out | 
| 89 | If level > MAX_PID_NS_LEVEL is needed for limiting size of 'struct pid' Then Go to out | 
| 91 | ucounts = inc_pid_namespaces(user_ns) | 
| 103 | If (pid_cachep == NULL) Then Go to out_free_idr | 
| 106 | err = ns_alloc_inum( & ns) | 
| 107 | If err Then Go to out_free_idr | 
| 109 | ops = pidns_operations | 
| 113 | parent = get_pid_ns(parent_pid_ns) | 
| 114 | user_ns = get_user_ns(user_ns) | 
| 116 | pid_allocated = PIDNS_ADDING | 
| 117 | INIT_WORK( & proc_work, proc_cleanup_work) | 
| 119 | Return ns | 
| 121 | out_free_idr : | 
| 124 | out_dec : | 
| 126 | out : | 
| Name | Describe | 
|---|---|
| copy_pid_ns | 
| Source code conversion tool public plug-in interface | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |