函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Determine if previously allocated or extended slice is complete or not

函数原型:static bool throtl_slice_used(struct throtl_grp *tg, bool rw)

返回类型:bool

参数:

类型参数名称
struct throtl_grp *tg
boolrw
830  如果Calculate whether a is in the range of [b, c].(jiffies, When did we start a new slice [rw], slice_end[rw])则返回:false
833  返回:true
调用者
名称描述
throtl_trim_sliceTrim the used slices and adjust slice start accordingly
tg_may_dispatchReturns whether one can dispatch a bio or not. Also returns approx number* of jiffies to wait before this bio is with-in IO rate and can be dispatched
start_parent_slice_with_credit