Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\net\net_namespace.h Create Date:2022-07-28 05:53:05
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:copy_net_ns

Proto:static inline struct net *copy_net_ns(unsigned long flags, struct user_namespace *user_ns, struct net *old_net)

Type:struct net

Parameter:

TypeParameterName
unsigned longflags
struct user_namespace *user_ns
struct net *old_net
207  If flags & New network namespace Then Return ERR_PTR( - EINVAL)
209  Return old_net
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.