函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:throtl_start_new_slice

函数原型:static inline void throtl_start_new_slice(struct throtl_grp *tg, bool rw)

返回类型:void

参数:

类型参数名称
struct throtl_grp *tg
boolrw
801  Number of bytes disptached in current slice [rw]等于0
802  Number of bio's dispatched in current slice [rw]等于0
803  When did we start a new slice [rw]等于jiffies
804  slice_end[rw]等于jiffiesthrotl_slice
805  hrotl_log - log debug message via blktrace*@sq: the service_queue being reported*@fmt: printf format string*@args: printf args* The messages are prefixed with "throtl BLKG_NAME" if @sq belongs to a* throtl_grp; otherwise, just "throtl".( & this group's service queue , "[%c] new slice start=%lu end=%lu jiffies=%lu", rw == generic data direction definitions ? 'R' : 'W', When did we start a new slice [rw], slice_end[rw], jiffies)
调用者
名称描述
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
tg_conf_updated