函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static void delayacct_end(raw_spinlock_t *lock, u64 *start, u64 *total, unsigned int *count)

返回类型:void

参数:

类型参数名称
raw_spinlock_t *lock
u64 *start
u64 *total
unsigned int *count
48  ns等于ktime_get_ns()减start
51  如果ns大于0则
52  raw_spin_lock_irqsave(lock, flags)
53  total加等于ns
54  count自加
55  raw_spin_unlock_irqrestore(lock, flags)
调用者
名称描述
__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