Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:group_rstat_cpu_pop_updated - iterate and dismantle rstat_cpu updated tree*@pos: current position*@root: root of the tree to traversal*@cpu: target cpu* Walks the udpated rstat_cpu tree on @cpu from @root. %NULL @pos starts

Proto:static struct cgroup *cgroup_rstat_cpu_pop_updated(struct cgroup *pos, struct cgroup *root, int cpu)

Type:struct cgroup

Parameter:

TypeParameterName
struct cgroup *pos
struct cgroup *root
intcpu
92  If pos == root Then Return NULL
99  If Not pos Then pos = root
101  Else pos = cgroup_parent(pos)
105  When (true) cycle
106  rstatc = cgroup_rstat_cpu(pos, cpu)
107  If rminated by self cgroup == pos Then Break
109  pos = rminated by self cgroup
118  If NULL iff not on the list Then
119  parent = cgroup_parent(pos)
120  prstatc = cgroup_rstat_cpu(parent, cpu)
124  nextp = rminated by self cgroup
125  When (true) cycle
127  If nextp == pos Then Break
130  WARN_ON_ONCE( * nextp == parent)
134  nextp = NULL iff not on the list
135  NULL iff not on the list = NULL
142  smp_mb()
144  Return pos
148  Return NULL
Caller
NameDescribe
cgroup_rstat_flush_lockedsee cgroup_rstat_flush()