函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:init_cgroup_root

函数原型:void init_cgroup_root(struct cgroup_fs_context *ctx)

返回类型:void

参数:

类型参数名称
struct cgroup_fs_context *ctx
1910  root等于root
1911  cgrp等于 The root cgroup. Root is destroyed on its release.
1913  初始化链表头
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  如果Path for release notifications 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  如果Hierarchy name 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  如果cgroup1 bits 设置内存位
调用者
名称描述
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