Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:cgroup_vet_subtree_control_enable

Proto:static int cgroup_vet_subtree_control_enable(struct cgroup *cgrp, u16 enable)

Type:int

Parameter:

TypeParameterName
struct cgroup *cgrp
u16enable
3179  domain_enable = enable & ~some controllers can be threaded on the default hierarchy
3182  If Not enable Then Return 0
3186  If Not a domain which isn't connected to the root w/o brekage can't be used Then Return -EOPNOTSUPP
3190  If an @cgrp host both domain and threaded children? Then Return 0
3193  If domain_enable Then
3195  If s @cgrp root of a threaded subtree? || cgroup_is_threaded(cgrp) Then Return -EOPNOTSUPP
3197  Else
3203  If an @cgrp become a thread root? should always be true for a thread root || cgroup_is_threaded(cgrp) Then Return 0
3211  If cgroup_has_tasks(cgrp) Then Return -EBUSY
3214  Return 0
Caller
NameDescribe
cgroup_subtree_control_writehange the enabled child controllers for a cgroup in the default hierarchy