函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:group_add_legacy_cftypes - add an array of cftypes for legacy hierarchies*@ss: target cgroup subsystem*@cfts: zero-length name terminated array of cftypes* Similar to cgroup_add_cftypes() but the added files are only used for* the legacy hierarchies.

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

返回类型:int

参数:

类型参数名称
struct cgroup_subsys *ss
struct cftype *cfts
4077 cftBy 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'循环CFTYPE_* flags 或等于__CFTYPE_NOT_ON_DFL
4079  返回:group_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.
__hugetlb_cgroup_file_init
mem_cgroup_swap_init
blkcg_policy_registerlkcg_policy_register - register a blkcg policy*@pol: blkcg policy to register* Register @pol with blkcg core. Might sleep and @pol may be modified on* successful registration. Returns 0 on success and -errno on failure.