Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\delayacct.c Create Date:2022-07-28 11:48:06
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Finish delay accounting for a statistic using its timestamps (@start),* accumalator (@total) and @count

Proto:static void delayacct_end(raw_spinlock_t *lock, u64 *start, u64 *total, unsigned int *count)

Type:void

Parameter:

TypeParameterName
raw_spinlock_t *lock
u64 *start
u64 *total
unsigned int *count
48  ns = ktime_get_ns() - start
51  If ns > 0 Then
52  raw_spin_lock_irqsave(lock, flags)
53  total += ns
54  count++
55  raw_spin_unlock_irqrestore(lock, flags)
Caller
NameDescribe
__delayacct_blkio_endWe cannot rely on the `current` macro, as we haven't yet switched back to* the process being woken.
__delayacct_freepages_end
__delayacct_thrashing_end