Function Report

Linux Kernel (v4.4)

Source File:kernel\cgroup.c Create Date:2016-01-14 11:28:17
Last Modify:2016-01-11 07:01:32 Copyright©Brick
home page Tree
Annotate the kernelChinese

Function Name:cgroup_can_fork

Function:int cgroup_can_fork(struct task_struct *child, void *ss_priv[ ])

Return Type:int

Parameter:

Type Parameter NameRemarks
struct task_struct * child the task in question.
void * ss_priv

Function description: called on a new task before the process is exposed

5533  filter for_each_subsys with a bitmask
5534  ret = Control Group subsystem type. See Documentation/cgroups/cgroups.txt for details
5535  If ret then Go to out_revert
5539  Returning 0
5541  out_revert
5542  iterate all enabled cgroup subsystems
5543  If j >= i then Break.
5545  If Control Group subsystem type. See Documentation/cgroups/cgroups.txt for details then Control Group subsystem type. See Documentation/cgroups/cgroups.txt for details
5549  Returning ret
Caller
Function NameFunction description
copy_processCreate a new process