函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:an @cgrp become a thread root? should always be true for a thread root

函数原型:static bool cgroup_can_be_thread_root(struct cgroup *cgrp)

返回类型:bool

参数:

类型参数名称
struct cgroup *cgrp
359  如果an @cgrp host both domain and threaded children? 则返回:true
363  如果cgroup_is_threaded(cgrp)则返回:false
367  如果nr_populated_domain_children则返回:false
371  如果* 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按位与some controllers can be threaded on the default hierarchy 的反则返回:false
374  返回:true
调用者
名称描述
cgroup_migrate_vet_dstgroup_migrate_vet_dst - verify whether a cgroup can be migration destination*@dst_cgrp: destination cgroup to test* On the default hierarchy, except for the mixable, (possible) thread root* and threaded cgroups, subtree_control must be zero for migration*
cgroup_vet_subtree_control_enable
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.