函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:cgroup_vet_subtree_control_enable

函数原型:static int cgroup_vet_subtree_control_enable(struct cgroup *cgrp, u16 enable)

返回类型:int

参数:

类型参数名称
struct cgroup *cgrp
u16enable
3179  domain_enable等于enable按位与some controllers can be threaded on the default hierarchy 的反
3182  如果非enable则返回:0
3186  如果非a domain which isn't connected to the root w/o brekage can't be used 则返回:负EOPNOTSUPP
3190  如果an @cgrp host both domain and threaded children? 则返回:0
3193  如果domain_enable
3195  如果s @cgrp root of a threaded subtree? cgroup_is_threaded(cgrp)则返回:负EOPNOTSUPP
3197  否则
3203  如果an @cgrp become a thread root? should always be true for a thread root cgroup_is_threaded(cgrp)则返回:0
3211  如果cgroup_has_tasks(cgrp)则返回:负EBUSY
3214  返回:0
调用者
名称描述
cgroup_subtree_control_writehange the enabled child controllers for a cgroup in the default hierarchy