Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:int __init cgroup_init_early(void)

Type:int

Parameter:Nothing

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  If Not optional, initialized automatically during boot if not set Then optional, initialized automatically during boot if not set = cgroup_subsys_name[i]
5628  If early_init Then cgroup_init_subsys(ss, true)
5631  Return 0