函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:see cgroup_rstat_flush()

函数原型:static void cgroup_rstat_flush_locked(struct cgroup *cgrp, bool may_sleep)__releases(&cgroup_rstat_lock) __acquires(&cgroup_rstat_lock)

返回类型:void

参数:

类型参数名称
struct cgroup *cgrp
boolmay_sleep
157  lockdep_assert_held( & cgroup_rstat_lock)
159  遍历可用CPU(cpu)
160  cpu_lock等于per_cpu_ptr( & cgroup_rstat_cpu_lock, cpu)
162  struct cgroup * pos = NULL
164  raw_spin_lock(cpu_lock)
176  raw_spin_unlock(cpu_lock)
182  如果非cond_resched()则cpu_relax()
调用者
名称描述
cgroup_rstat_flushgroup_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
cgroup_rstat_flush_irqsafegroup_rstat_flush_irqsafe - irqsafe version of cgroup_rstat_flush()*@cgrp: target cgroup* This function can be called from any context.
cgroup_rstat_flush_holdgroup_rstat_flush_begin - flush stats in @cgrp's subtree and hold*@cgrp: target cgroup* Flush stats in @cgrp's subtree and prevent further flushes. Must be* paired with cgroup_rstat_flush_release().* This function may block.