函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:cpuusage_write

函数原型:static int cpuusage_write(struct cgroup_subsys_state *css, struct cftype *cft, u64 val)

返回类型:int

参数:

类型参数名称
struct cgroup_subsys_state *css
struct cftype *cft
u64val
188  ca等于css_ca(css)
194  如果val则返回:负EINVAL
197  遍历可用CPU(cpu)
198  cpuacct_cpuusage_write(ca, cpu, 0)
200  返回:0