函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ss_populate_dir - create subsys files in a cgroup directory*@css: target css* On failure, no file is added.

函数原型:static int css_populate_dir(struct cgroup_subsys_state *css)

返回类型:int

参数:

类型参数名称
struct cgroup_subsys_state *css
1678  cgrp等于PI: the cgroup that this css is attached to
1682  如果flags按位与CSS_VISIBLE或非 cgroup kernfs entry 则返回:0
1685  如果非PI: the cgroup subsystem that this css is attached to
1686  如果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 cfts等于cgroup_base_files
1688  否则cfts等于cgroup-v1.c
1691  ret等于cgroup_addrm_files( & self css with NULL ->ss, points back to this cgroup , cgrp, cfts, true)
1692  如果ret小于0则返回:ret
1694  否则
1696  ret等于cgroup_addrm_files(css, cgrp, cfts, true)
1697  如果ret小于0则
1698  failed_cfts等于cfts
1699  转到:err
1704  flags或等于CSS_VISIBLE
1706  返回:0
1707  err :
1709  如果cfts恒等于failed_cfts退出
1711  cgroup_addrm_files(css, cgrp, cfts, false)
1713  返回:ret
调用者
名称描述
cgroup_setup_root
cgroup_apply_control_enablegroup_apply_control_enable - enable or show csses according to control*@cgrp: root of the target subtree* Walk @cgrp's subtree and create new csses or make the existing ones* visible. A css is created invisible if it's being implicitly enabled
cgroup_mkdir
cgroup_initgroup_init - cgroup initialization* Register cgroup filesystem and /proc file, and initialize* any subsystems that didn't request early init.