函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

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

返回类型:int

参数:

类型参数名称
struct cgroup_subsys *ss
struct cftype *cfts
4027  如果非group_ssid_enabled - cgroup subsys enabled test by subsys ID*@ssid: subsys ID of interest* cgroup_subsys_enabled() can only be used with literal subsys names which* is fine for individual subsystems but unsuitable for cgroup core. This则返回:0
4030  如果非cftsBy 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'则返回:0
4033  ret等于cgroup_init_cftypes(ss, cfts)
4034  如果ret则返回:ret
4037  mutex_lock( & cgroup_mutex is the master lock)
4039  添加链表项
4040  ret等于cgroup_apply_cftypes(cfts, true)
4041  如果retcgroup_rm_cftypes_locked(cfts)
4044  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
4045  返回:ret
调用者
名称描述
cgroup_add_dfl_cftypesgroup_add_dfl_cftypes - add an array of cftypes for default hierarchy*@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 default hierarchy.
cgroup_add_legacy_cftypesgroup_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.
cgroup_initgroup_init - cgroup initialization* Register cgroup filesystem and /proc file, and initialize* any subsystems that didn't request early init.