Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:static int cgroup_apply_control_enable(struct cgroup *cgrp)

Type:int

Parameter:

TypeParameterName
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  If Not (subsystems enabled on a cgroup & 1 << the following two fields are initialized automtically during boot ) Then Continue
3061  If Not css Then
3062  css = css_create(dsct, ss)
3063  If IS_ERR(css) Then Return PTR_ERR(css)
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  If css_visible(css) Then
3071  If ret Then Return ret
3077  Return 0
Caller
NameDescribe
cgroup_apply_control
cgroup_mkdir