Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:copy_utsname

Proto:static inline struct uts_namespace *copy_utsname(unsigned long flags, struct user_namespace *user_ns, struct uts_namespace *old_ns)

Type:struct uts_namespace

Parameter:

TypeParameterName
unsigned longflags
struct user_namespace *user_ns
struct uts_namespace *old_ns
61  If flags & New utsname namespace Then Return ERR_PTR( - EINVAL)
64  Return 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.