Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:cgroup_rstat_init

Proto:int cgroup_rstat_init(struct cgroup *cgrp)

Type:int

Parameter:

TypeParameterName
struct cgroup *cgrp
257  If Not per-cpu recursive resource statistics Then
258  per-cpu recursive resource statistics = alloc_percpu(structcgroup_rstat_cpu)
259  If Not per-cpu recursive resource statistics Then Return -ENOMEM
264  for_each_possible_cpu(cpu)
265  rstatc = cgroup_rstat_cpu(cgrp, cpu)
267  rminated by self cgroup = cgrp
268  u64_stats_init( & ->bsync protects ->bstat. These are the only fields which get* updated in the hot path.)
271  Return 0
Caller
NameDescribe
cgroup_rstat_boot