Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:group_can_fork - called on a new task before the process is exposed*@child: the task in question.* This calls the subsystem can_fork() callbacks. If the can_fork() callback* returns an error, the fork aborts with that error code. This allows for

Proto:int cgroup_can_fork(struct task_struct *child)

Type:int

Parameter:

TypeParameterName
struct task_struct *child
5881  Do
5881  __ss_mask = have_canfork_callback
5881  If Not CGROUP_SUBSYS_COUNT Then
5881  i = 0
5881  Break
5881  When i < CGROUP_SUBSYS_COUNT cycle
5881  ss = cgroup_subsys[i]
5882  ret = can_fork(child)
5883  If ret Then Go to out_revert
5885  When (false) cycle
5887  Return 0
5889  out_revert :
5891  If j >= i Then Break
5893  If cancel_fork Then cancel_fork(child)
5897  Return ret