函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:put_pid_ns

函数原型:void put_pid_ns(struct pid_namespace *ns)

返回类型:void

参数:

类型参数名称
struct pid_namespace *ns
170 ns不等于PID-map pages start out as NULL, they get allocated upon* first use and are never deallocated. This way a low pid_max* value does not cause lots of bitmaps to be allocated, but* the scheme scales to up to 4 million PIDs, runtime.循环
171  parent等于父进程空间
172  如果非kref_put - decrement refcount for object.*@kref: object.*@release: pointer to the function that will clean up the object when the* last reference to the object is released.* This pointer is required, and it is not acceptable to pass kfree退出
174  ns等于parent
调用者
名称描述
alloc_pid分配进程句柄
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.
free_nsproxy
cgroup_pidlist_destroy_work_fn
pidns_for_children_get
pidns_put
pidns_install
free_event_rcu
perf_event_allocAllocate and initialize an event structure