函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Create a new CPU accounting group

函数原型:static struct cgroup_subsys_state *cpuacct_css_alloc(struct cgroup_subsys_state *parent_css)

返回类型:struct cgroup_subsys_state

参数:

类型参数名称
struct cgroup_subsys_state *parent_css
63  如果非parent_css则返回:css
66  ca等于分配内存并置零
67  如果非ca则转到:out
70  cpuusage holds pointer to a u64-type object on every CPU 等于alloc_percpu(structcpuacct_usage)
71  如果非cpuusage holds pointer to a u64-type object on every CPU 则转到:out_free_ca
74  cpustat等于alloc_percpu(structkernel_cpustat)
75  如果非cpustat则转到:out_free_cpuusage
78  返回:css
80  out_free_cpuusage :
81  释放内存
82  out_free_ca :
83  释放内存
84  out :
85  返回:错误号