函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\cgroup\cgroup.c Create Date:2022-07-27 12:12:51
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:cgroup_check_hierarchy_limits

函数原型:static bool cgroup_check_hierarchy_limits(struct cgroup *parent)

返回类型:bool

参数:

类型参数名称
struct cgroup *parent
5270  int ret = false
5271  level等于1
5273  lockdep_assert_held( & cgroup_mutex is the master lock)
5275 cgroup循环
5276  如果* 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则转到:fail
5279  如果level大于 Maximum allowed descent tree depth 则转到:fail
5282  level自加
5285  ret = true
5286  fail :
5287  返回:ret
调用者
名称描述
cgroup_mkdir