Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:see cgroup_rstat_flush()

Proto:static void cgroup_rstat_flush_locked(struct cgroup *cgrp, bool may_sleep)__releases(&cgroup_rstat_lock) __acquires(&cgroup_rstat_lock)

Type:void

Parameter:

TypeParameterName
struct cgroup *cgrp
boolmay_sleep
157  lockdep_assert_held( & cgroup_rstat_lock)
159  for_each_possible_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  If Not cond_resched() Then cpu_relax()
Caller
NameDescribe
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.