Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:mntns_get

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

Type:struct ns_common

Parameter:

TypeParameterName
struct task_struct *task
3939  struct ns_common * ns = NULL
3942  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.
3943  nsproxy = Namespaces:
3944  If nsproxy Then
3945  ns = ns
3946  get_mnt_ns(to_mnt_ns(ns))
3948  task_unlock(task)
3950  Return ns