Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:cgroup_check_hierarchy_limits

Proto:static bool cgroup_check_hierarchy_limits(struct cgroup *parent)

Type:bool

Parameter:

TypeParameterName
struct cgroup *parent
5270  int ret = false
5271  level = 1
5273  lockdep_assert_held( & cgroup_mutex is the master lock)
5275  When cgroup cycle
5276  If * Keep track of total numbers of visible and dying descent cgroups. * Dying cgroups are cgroups which were deleted by a user, * but are still existing because someone else is holding a reference. * max_descendants is a maximum allowed number of descent cgr >= max_descendants Then Go to fail
5279  If level > Maximum allowed descent tree depth Then Go to fail
5282  level++
5285  ret = true
5286  fail :
5287  Return ret
Caller
NameDescribe
cgroup_mkdir