Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:cgroup_init_cftypes

Proto:static int cgroup_init_cftypes(struct cgroup_subsys *ss, struct cftype *cfts)

Type:int

Parameter:

TypeParameterName
struct cgroup_subsys *ss
struct cftype *cfts
3945  When By convention, the name should begin with the name of the* subsystem, followed by a period. Zero length string indicates* end of cftype array.[0] != '\0' cycle
3948  WARN_ON(NULL for cgroup core files || kf_ops)
3950  If seq_start Then kf_ops = cgroup_kf_ops
3952  Else kf_ops = cgroup_kf_single_ops
3960  kf_ops = kmemdup(kf_ops, size of kf_ops , GFP_KERNEL)
3961  If Not kf_ops Then
3963  Return -ENOMEM
3968  kf_ops = kf_ops
3969  NULL for cgroup core files = ss
3972  Return 0
Caller
NameDescribe
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
cgroup_initgroup_init - cgroup initialization* Register cgroup filesystem and /proc file, and initialize* any subsystems that didn't request early init.