函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型:static struct cgroup *cgroup_rstat_cpu_pop_updated(struct cgroup *pos, struct cgroup *root, int cpu)

返回类型:struct cgroup

参数:

类型参数名称
struct cgroup *pos
struct cgroup *root
intcpu
92  如果pos恒等于root则返回:NULL
99  如果非pospos等于root
101  否则pos等于cgroup_parent(pos)
105  当(true)循环
106  rstatc等于cgroup_rstat_cpu(pos, cpu)
107  如果rminated by self cgroup 恒等于pos退出
109  pos等于rminated by self cgroup
118  如果NULL iff not on the list
119  parent等于cgroup_parent(pos)
120  prstatc等于cgroup_rstat_cpu(parent, cpu)
124  nextp等于rminated by self cgroup
125  当(true)循环
126  nrstatc等于cgroup_rstat_cpu( * nextp, cpu)
127  如果nextp恒等于pos退出
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  返回:pos
148  返回:NULL
调用者
名称描述
cgroup_rstat_flush_lockedsee cgroup_rstat_flush()