Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:init_cgroup_housekeeping

Proto:static void init_cgroup_housekeeping(struct cgroup *cgrp)

Type:void

Parameter:

TypeParameterName
struct cgroup *cgrp
1888  Initialization list head
1889  Initialization list head
1890  Initialization list head
1891  Initialization list head
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  Initialization list head
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  Initialization list head
1904  init_waitqueue_head( & used to wait for offlining of csses )
1905  INIT_WORK( & used to schedule release agent , cgroup1_release_agent)
Caller
NameDescribe
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.