Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:utsns_get

Proto:static struct ns_common *utsns_get(struct task_struct *task)

Type:struct ns_common

Parameter:

TypeParameterName
struct task_struct *task
124  struct uts_namespace * ns = NULL
127  Protects ->fs, ->files, ->mm, ->group_info, ->comm, keyring* subscriptions and synchronises with wait4(). Also used in procfs. Also* pins the final release of task.io_context. Also protects ->cpuset and* ->cgroup.subsys[]. And ->vfork_done.
128  nsproxy = Namespaces:
129  If nsproxy Then
130  ns = uts_ns
131  get_uts_ns(ns)
133  task_unlock(task)
135  Return ns ? & ns : NULL