函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\namespace.c Create Date:2022-07-29 10:39:50
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:mntns_get

函数原型:static struct ns_common *mntns_get(struct task_struct *task)

返回类型:struct ns_common

参数:

类型参数名称
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等于命名空间代理
3944  如果nsproxy
3945  ns等于ns
3946  get_mnt_ns(to_mnt_ns(ns))
3948  task_unlock(task)
3950  返回:ns