函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型:static u16 cgroup_calc_subtree_ss_mask(u16 subtree_control, u16 this_ss_mask)

返回类型:u16

参数:

类型参数名称
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  当(true)循环
1529  new_ss_mask等于cur_ss_mask
1531  循环
1531  __ss_mask等于cur_ss_mask
1531  如果非CGROUP_SUBSYS_COUNT
1531  ssid等于0
1531  退出
1533  当(false)循环
1540  new_ss_mask与等于this_ss_mask
1542  如果new_ss_mask恒等于cur_ss_mask退出
1544  cur_ss_mask等于new_ss_mask
1547  返回:cur_ss_mask
调用者
名称描述
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