函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:group_apply_control_enable - enable or show csses according to control*@cgrp: root of the target subtree* Walk @cgrp's subtree and create new csses or make the existing ones* visible. A css is created invisible if it's being implicitly enabled

函数原型:static int cgroup_apply_control_enable(struct cgroup *cgrp)

返回类型:int

参数:

类型参数名称
struct cgroup *cgrp
3054  walk live descendants in preorder (dsct, d_css, cgrp)
3056  css等于group_css - obtain a cgroup's css for the specified subsystem*@cgrp: the cgroup of interest*@ss: the subsystem of interest (%NULL returns @cgrp->self)* Return @cgrp's css (cgroup_subsys_state) associated with @ss
3058  如果非subsystems enabled on a cgroup 按位与1左移 the following two fields are initialized automtically during boot 位的值则继续下一循环
3061  如果非css
3062  css等于css_create(dsct, ss)
3063  如果是错误则返回:错误
3067  WARN_ON_ONCE(percpu_ref_is_dying - test whether a percpu refcount is dying or dead*@ref: percpu_ref to test* Returns %true if @ref is dying or dead.* This function is safe to call as long as @ref is between init and exit)
3069  如果css_visible(css)则
3071  如果ret则返回:ret
3077  返回:0
调用者
名称描述
cgroup_apply_control
cgroup_mkdir