函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:pidns_install

函数原型:static int pidns_install(struct nsproxy *nsproxy, struct ns_common *ns)

返回类型:int

参数:

类型参数名称
struct nsproxy *nsproxy
struct ns_common *ns
383  active等于取进程的空间
384  new等于to_pid_ns(ns)
386  如果非ns_capable(user_ns, Allow setting zone reclaim policy )或非ns_capable(current_user_ns(), Allow setting zone reclaim policy )则返回:负EPERM
398  如果进程级别小于进程级别则返回:负EINVAL
401  ancestor等于new
402 进程级别大于进程级别循环
403  ancestor等于父进程空间
404  如果ancestor不等于active则返回:负EINVAL
407  put_pid_ns(pid_ns_for_children)
408  pid_ns_for_children等于get_pid_ns(new)
409  返回:0