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:is_child_reaper

Function:static inline bool is_child_reaper(struct pid *pid)

Return Type:static inline bool


Type Parameter NameRemarks
struct pid * pid

Function description:returns true if the pid is the init process of the current namespace. As this one could be checked before pid_ns->child_reaper is assigned in copy_process, we check with the pid number.

150  Returning Try to keep pid_chain in the same cacheline as nr for find_vpid == 1
Function NameFunction description
copy_processCreate a new process