函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:init_cgroup_housekeeping

函数原型:static void init_cgroup_housekeeping(struct cgroup *cgrp)

返回类型:void

参数:

类型参数名称
struct cgroup *cgrp
1888  初始化链表头
1889  初始化链表头
1890  初始化链表头
1891  初始化链表头
1892  mutex_init - initialize the mutex*@mutex: the mutex to be initialized* Initialize the mutex to unlocked state.* It is not allowed to initialize an already locked mutex.( & pidlist_mutex)
1893  PI: the cgroup that this css is attached to 等于cgrp
1894  flags或等于CSS_ONLINE
1895  * If !threaded, self. If threaded, it points to the nearest * domain ancestor. Inside a threaded subtree, cgroups are exempt * from process granularity and no-internal-task constraint. * Domain level resource consumptions which aren't tied to a * specific 等于cgrp
1896  max_descendants等于INT_MAX
1897  Maximum allowed descent tree depth 等于INT_MAX
1898  初始化链表头
1899  prev_cputime_init( & for printing out cputime )
1901  r_each_subsys - iterate all enabled cgroup subsystems*@ss: the iteration cursor*@ssid: the index of @ss, CGROUP_SUBSYS_COUNT after reaching the end(ss, ssid)
1902  初始化链表头
1904  init_waitqueue_head( & used to wait for offlining of csses )
1905  INIT_WORK( & used to schedule release agent , cgroup1_release_agent)
调用者
名称描述
init_cgroup_root
cgroup_createThe returned cgroup is fully initialized including its control mask, but* it isn't associated with its kernfs_node and doesn't have the control* mask applied.