函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:cgroup_rstat_init

函数原型:int cgroup_rstat_init(struct cgroup *cgrp)

返回类型:int

参数:

类型参数名称
struct cgroup *cgrp
257  如果非 per-cpu recursive resource statistics
258  per-cpu recursive resource statistics 等于alloc_percpu(structcgroup_rstat_cpu)
259  如果非 per-cpu recursive resource statistics 则返回:负ENOMEM
264  遍历可用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  返回:0
调用者
名称描述
cgroup_rstat_boot
cgroup_createThe returned cgroup is fully initialized including its control mask, but* it isn't associated with its kernfs_node and doesn't have the control* mask applied.