Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\pid_namespace.c Create Date:2022-07-28 11:20:15
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:copy_pid_ns

Proto:struct pid_namespace *copy_pid_ns(unsigned long flags, struct user_namespace *user_ns, struct pid_namespace *old_ns)

Type:struct pid_namespace

Parameter:

TypeParameterName
unsigned longflags
struct user_namespace *user_ns
struct pid_namespace *old_ns
151  If Not (flags & New pid namespace ) Then Return get_pid_ns(old_ns)
153  If task_active_pid_ns(current process) != old_ns Then Return ERR_PTR( - EINVAL)
155  Return create_pid_namespace(user_ns, old_ns)
Caller
NameDescribe
create_new_namespacesCreate 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.