函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:subsystems visibly enabled on a cgroup

函数原型:static u16 cgroup_control(struct cgroup *cgrp)

返回类型:u16

参数:

类型参数名称
struct cgroup *cgrp
420  parent等于cgroup_parent(cgrp)
421  root_ss_mask等于 The bitmask of subsystems attached to this hierarchy
423  如果parent
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  如果cgroup_is_threaded(cgrp)则ss_mask与等于some controllers can be threaded on the default hierarchy
429  返回:ss_mask
432  如果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 root_ss_mask与等于some controllers are not supported in the default hierarchy 按位或some controllers are implicitly enabled on the default hierarchy 的值的反
435  返回:root_ss_mask
调用者
名称描述
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.