Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\pid_namespace.h Create Date:2022-07-28 05:49:14
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:static inline struct pid_namespace *copy_pid_ns(unsigned long flags, struct user_namespace *user_ns, struct pid_namespace *ns)

Type:struct pid_namespace

Parameter:

TypeParameterName
unsigned longflags
struct user_namespace *user_ns
struct pid_namespace *ns
81  If flags & New pid namespace Then ns = ERR_PTR( - EINVAL)
83  Return 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.