Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:group_calc_subtree_ss_mask - calculate subtree_ss_mask*@subtree_control: the new subtree_control mask to consider*@this_ss_mask: available subsystems* On the default hierarchy, a subsystem may request other subsystems to be

Proto:static u16 cgroup_calc_subtree_ss_mask(u16 subtree_control, u16 this_ss_mask)

Type:u16

Parameter:

TypeParameterName
u16subtree_control
u16this_ss_mask
1520  cur_ss_mask = subtree_control
1524  lockdep_assert_held( & cgroup_mutex is the master lock)
1526  cur_ss_mask |= some controllers are implicitly enabled on the default hierarchy
1528  When (true) cycle
1529  new_ss_mask = cur_ss_mask
1531  Do
1531  If Not CGROUP_SUBSYS_COUNT Then
1531  ssid = 0
1531  Break
1533  When (false) cycle
1540  new_ss_mask &= this_ss_mask
1542  If new_ss_mask == cur_ss_mask Then Break
1544  cur_ss_mask = new_ss_mask
1547  Return cur_ss_mask
Caller
NameDescribe
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