Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:group_save_control - save control masks and dom_cgrp of a subtree*@cgrp: root of the target subtree* Save ->subtree_control, ->subtree_ss_mask and ->dom_cgrp to the* respective old_ prefixed fields for @cgrp's subtree including @cgrp* itself.

Proto:static void cgroup_save_control(struct cgroup *cgrp)

Type:void

Parameter:

TypeParameterName
struct cgroup *cgrp
2974  walk live descendants in preorder (dsct, d_css, cgrp)
2975  old_subtree_control = * The bitmask of subsystems enabled on the child cgroups. * ->subtree_control is the one configured through * "cgroup.subtree_control" while ->child_ss_mask is the effective * one which may have more subsystems enabled. Controller knobs * are made availabl
2976  old_subtree_ss_mask = subtree_ss_mask
2977  used while enabling threaded = * If !threaded, self. If threaded, it points to the nearest * domain ancestor. Inside a threaded subtree, cgroups are exempt * from process granularity and no-internal-task constraint. * Domain level resource consumptions which aren't tied to a * specific
Caller
NameDescribe
cgroup_subtree_control_writehange the enabled child controllers for a cgroup in the default hierarchy
cgroup_enable_threadedgroup_enable_threaded - make @cgrp threaded*@cgrp: the target cgroup* Called when "threaded" is written to the cgroup.type interface file and* tries to make @cgrp threaded and join the parent's resource domain.