Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:cgroup_rstat_exit

Proto:void cgroup_rstat_exit(struct cgroup *cgrp)

Type:void

Parameter:

TypeParameterName
struct cgroup *cgrp
278  group_rstat_flush - flush stats in @cgrp's subtree*@cgrp: target cgroup* Collect all per-cpu stats in @cgrp's subtree into the global counters* and propagate them upwards
281  for_each_possible_cpu(cpu)
282  rstatc = cgroup_rstat_cpu(cgrp, cpu)
284  If WARN_ON_ONCE(rminated by self cgroup != cgrp) || WARN_ON_ONCE(NULL iff not on the list ) Then Return
289  free previously allocated percpu memory
290  per-cpu recursive resource statistics = NULL
Caller
NameDescribe
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.