Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:switch_task_namespaces

Proto:void switch_task_namespaces(struct task_struct *p, struct nsproxy *new)

Type:void

Parameter:

TypeParameterName
struct task_struct *p
struct nsproxy *new
217  might_sleep()
219  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.
220  ns = Namespaces:
221  Namespaces: = new
222  task_unlock(p)
224  If ns && atomic_dec_and_test( & count) Then free_nsproxy(ns)
Caller
NameDescribe
exit_task_namespaces
SYSCALL_DEFINE2