Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:subsystems visibly enabled on a cgroup

Proto:static u16 cgroup_control(struct cgroup *cgrp)

Type:u16

Parameter:

TypeParameterName
struct cgroup *cgrp
420  parent = cgroup_parent(cgrp)
421  root_ss_mask = The bitmask of subsystems attached to this hierarchy
423  If parent Then
424  ss_mask = * 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
427  If cgroup_is_threaded(cgrp) Then ss_mask &= some controllers can be threaded on the default hierarchy
429  Return ss_mask
432  If group_on_dfl - test whether a cgroup is on the default hierarchy*@cgrp: the cgroup of interest* The default hierarchy is the v2 interface of cgroup and this function* can be used to test whether a cgroup is on the default hierarchy for* cases where a Then root_ss_mask &= ~(some controllers are not supported in the default hierarchy | some controllers are implicitly enabled on the default hierarchy )
435  Return root_ss_mask
Caller
NameDescribe
cgroup_controllers_showshow controllers which are enabled from the parent
cgroup_propagate_controlgroup_propagate_control - refresh control masks of a subtree*@cgrp: root of the target subtree* For @cgrp and its subtree, ensure ->subtree_ss_mask matches* ->subtree_control and propagate controller availability through the
css_visible
cgroup_subtree_control_writehange the enabled child controllers for a cgroup in the default hierarchy
cgroup_createThe returned cgroup is fully initialized including its control mask, but* it isn't associated with its kernfs_node and doesn't have the control* mask applied.