Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\cgroup\cgroup.c Create Date:2022-07-28 11:09:57
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:cgroup_apply_cftypes

Proto:static int cgroup_apply_cftypes(struct cftype *cfts, bool is_add)

Type:int

Parameter:

TypeParameterName
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  If Not (flags & CSS_VISIBLE) Then Continue
3915  ret = cgroup_addrm_files(css, cgrp, cfts, is_add)
3916  If ret Then Break
3920  If is_add && Not ret Then kernfs_activate( cgroup kernfs entry )
3922  Return ret
Caller
NameDescribe
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