函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\pid_namespace.c Create Date:2022-07-27 12:23:00
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:copy_pid_ns

函数原型:struct pid_namespace *copy_pid_ns(unsigned long flags, struct user_namespace *user_ns, struct pid_namespace *old_ns)

返回类型:struct pid_namespace

参数:

类型参数名称
unsigned longflags
struct user_namespace *user_ns
struct pid_namespace *old_ns
151  如果非flags按位与新进程空间的值则返回:get_pid_ns(old_ns)
153  如果取进程的空间不等于old_ns则返回:错误号
155  返回:create_pid_namespace(user_ns, old_ns)
调用者
名称描述
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.