函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:cgroup_init_cftypes

函数原型:static int cgroup_init_cftypes(struct cgroup_subsys *ss, struct cftype *cfts)

返回类型:int

参数:

类型参数名称
struct cgroup_subsys *ss
struct cftype *cfts
3945 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'循环
3948  WARN_ON(NULL for cgroup core files || kf_ops)
3950  如果seq_startkf_ops等于cgroup_kf_ops
3952  否则kf_ops等于cgroup_kf_single_ops
3960  kf_ops等于kmemdup(kf_ops, kf_ops的长度, GFP_KERNEL)
3961  如果非kf_ops
3963  返回:负ENOMEM
3968  kf_ops等于kf_ops
3969  NULL for cgroup core files 等于ss
3972  返回:0
调用者
名称描述
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.