Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\cpuacct.c Create Date:2022-07-28 09:44:25
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:cpuacct_cpuusage_write

Proto:static void cpuacct_cpuusage_write(struct cpuacct *ca, int cpu, u64 val)

Type:void

Parameter:

TypeParameterName
struct cpuacct *ca
intcpu
u64val
136  cpuusage = per_cpu_ptr(cpuusage holds pointer to a u64-type object on every CPU , cpu)
143  raw_spin_lock_irq( & lock)
146  When i < CPUACCT_STAT_NSTATS cycle usages[i] = val
150  raw_spin_unlock_irq( & lock)
Caller
NameDescribe
cpuusage_write