Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\pid.h Create Date:2022-07-28 05:38:12
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:s_of_pid() returns the pid namespace in which the specified pid was* allocated.* NOTE:* ns_of_pid() is expected to be called for a process (task) that has* an attached 'struct pid' (see attach_pid(), detach_pid()) i.e @pid* is expected to be non-NULL

Proto:static inline struct pid_namespace *ns_of_pid(struct pid *pid)

Type:struct pid_namespace

Parameter:

TypeParameterName
struct pid *pid
144  struct pid_namespace * ns = NULL
145  If pid Then ns = ns
147  Return ns
Caller
NameDescribe
copy_processCreate a new process
access_pidfd_pidnsVerify that the signaler and signalee either are in the same pid namespace* or that the signaler's pid namespace is an ancestor of the signalee's pid* namespace.
task_active_pid_ns
__do_notifyThe next function is only to split too long sys_mq_timedsend