函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:group_init_early - cgroup initialization at system boot* Initialize cgroups at system boot, and initialize any* subsystems that request early init.

函数原型:int __init cgroup_init_early(void)

返回类型:int

参数:

5605  static struct cgroup_fs_context __initdata ctx
5609  root等于The default hierarchy, reserved for the subsystems that are otherwise* unattached - it never has more than a single cgroup, and all tasks are* part of that cgroup.
5610  init_cgroup_root( & ctx)
5611  flags或等于CSS_NO_REF
5613  RCU_INIT_POINTER() - initialize an RCU protected pointer*@p: The pointer to be initialized.*@v: The value to initialized the pointer to.* Initialize an RCU-protected pointer in special cases where readers(cgroups, & The default css_set - used by init and its children prior to any* hierarchies being mounted)
5616  WARN(!css_alloc || !css_free || name || the following two fields are initialized automtically during boot , "invalid cgroup_subsys %d:%s css_alloc=%p css_free=%p id:name=%d:%s\n", i, cgroup_subsys_name[i], css_alloc, css_free, the following two fields are initialized automtically during boot , name)
5620  WARN(strlen - Find the length of a string*@s: The string to be sized > MAX_CGROUP_TYPE_NAMELEN, "cgroup_subsys_name %s too long\n", cgroup_subsys_name[i])
5623  the following two fields are initialized automtically during boot 等于i
5624  name等于cgroup_subsys_name[i]
5625  如果非 optional, initialized automatically during boot if not set optional, initialized automatically during boot if not set 等于cgroup_subsys_name[i]
5628  如果early_initcgroup_init_subsys(ss, true)
5631  返回:0
调用者
名称描述
start_kernel启动内核