Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:put_pid_ns

Proto:void put_pid_ns(struct pid_namespace *ns)

Type:void

Parameter:

TypeParameterName
struct pid_namespace *ns
170  When 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. cycle
171  parent = parent
172  If Not 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 Then Break
174  ns = parent
Caller
NameDescribe
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