Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:init_cgroup_root

Proto:void init_cgroup_root(struct cgroup_fs_context *ctx)

Type:void

Parameter:

TypeParameterName
struct cgroup_fs_context *ctx
1910  root = root
1911  cgrp = The root cgroup. Root is destroyed on its release.
1913  Initialization list head
1914  atomic_set( & Number of cgroups in the hierarchy, used only for /proc/cgroups , 1)
1915  root = root
1916  init_cgroup_housekeeping(cgrp)
1918  Hierarchy-specific flags = CGRP_ROOT_* flags
1919  If Path for release notifications Then strscpy - Copy a C-string into a sized buffer*@dest: Where to copy the string to*@src: Where to copy the string from*@count: Size of destination buffer* Copy the string, or as much of it as fits, into the dest buffer. The
1921  If Hierarchy name Then strscpy - Copy a C-string into a sized buffer*@dest: Where to copy the string to*@src: Where to copy the string from*@count: Size of destination buffer* Copy the string, or as much of it as fits, into the dest buffer. The
1923  If cgroup1 bits Then Atomically set a bit in memory
Caller
NameDescribe
cgroup_init_earlygroup_init_early - cgroup initialization at system boot* Initialize cgroups at system boot, and initialize any* subsystems that request early init.
cgroup1_root_to_useThe guts of cgroup1 mount - find or create cgroup_root to use