函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:cgroup_apply_cftypes

函数原型:static int cgroup_apply_cftypes(struct cftype *cfts, bool is_add)

返回类型:int

参数:

类型参数名称
struct cftype *cfts
boolis_add
3901  ss等于NULL for cgroup core files
3902  root等于 The root cgroup. Root is destroyed on its release.
3904  ret等于0
3906  lockdep_assert_held( & cgroup_mutex is the master lock)
3910  cgrp等于PI: the cgroup that this css is attached to
3912  如果非flags按位与CSS_VISIBLE的值则继续下一循环
3915  ret等于cgroup_addrm_files(css, cgrp, cfts, is_add)
3916  如果ret退出
3920  如果is_add且非retkernfs_activate( cgroup kernfs entry )
3922  返回:ret
调用者
名称描述
cgroup_rm_cftypes_locked
cgroup_add_cftypesgroup_add_cftypes - add an array of cftypes to a subsystem*@ss: target cgroup subsystem*@cfts: zero-length name terminated array of cftypes* Register @cfts to @ss