函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:rwb_arm_timer

函数原型:static void rwb_arm_timer(struct rq_wb *rwb)

返回类型:void

参数:

类型参数名称
struct rq_wb *rwb
330  rqd等于rq_depth
332  如果scale_step大于0则
339  current window size 等于div_u64 - unsigned 64bit divide with 32bit divisor*@dividend: unsigned 64bit dividend*@divisor: unsigned 32bit divisor* This is the most common 64bit divide and should be used if possible,* as many 32bit archs can optimize this variant better than a full
341  否则
346  current window size 等于 default window size
349  lk_stat_activate_nsecs() - Gather block statistics during a time window in* nanoseconds.*@cb: The callback.*@nsecs: Number of nanoseconds to gather statistics for.* The timer callback will be called when the window expires.
调用者
名称描述
wb_timer_fn
wbt_waitReturns true if the IO request should be accounted, false if not.* May sleep, if we have exceeded the writeback limits. Caller can pass* in an irq held spinlock, if it holds one when calling this function.* If we do sleep, we'll release and re-grab it.