函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:cpuacct_cpuusage_write

函数原型:static void cpuacct_cpuusage_write(struct cpuacct *ca, int cpu, u64 val)

返回类型:void

参数:

类型参数名称
struct cpuacct *ca
intcpu
u64val
136  cpuusage等于per_cpu_ptr(cpuusage holds pointer to a u64-type object on every CPU , cpu)
143  关闭本地中断,获取所要保护的运行队列(runqueue)的自旋锁(spinlock),为查找可运行进程做准备。( & lock)
146 i小于CPUACCT_STAT_NSTATS循环usages[i]等于val
150  raw_spin_unlock_irq( & lock)
调用者
名称描述
cpuusage_write