Function Report

Linux Kernel (v4.4)

Source File:include\linux\pid.h Create Date:2016-01-14 09:11:11
Last Modify:2016-01-11 07:01:32 Copyright©Brick
home page Tree
Annotate the kernelChinese

Function Name:ns_of_pid

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

Return Type:static inline struct pid_namespace *


Type Parameter NameRemarks
struct pid * pid

Function description:returns the pid namespace in which the specified pid was allocated.

136  *ns = NULL
137  If pid then ns = is used to get the id of the struct pid, as it is seen in particular namespace. Later the struct pid is found with find_pid_ns() using the int nr and struct pid_namespace*ns.
139  Returning ns
Function NameFunction description
copy_processCreate a new process
__do_notifyThe next function is only to split too long sys_mq_timedsend