函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:q_delta - map service into the virtual time domain.*@service: amount of service.*@weight: scale factor (weight of an entity or weight sum).

函数原型:static u64 bfq_delta(unsigned long service, unsigned long weight)

返回类型:u64

参数:

类型参数名称
unsigned longservice
unsigned longweight
280  d等于service左移Shift for timestamp calculations
282  do_div() is NOT a C function(d, weight)
283  返回:d
调用者
名称描述
bfq_calc_finishq_calc_finish - assign the finish time to an entity.*@entity: the entity to act upon.*@service: the service to be charged to the entity.
bfq_bfqq_servedq_bfqq_served - update the scheduler status after selection for* service.*@bfqq: the queue being served.*@served: bytes to transfer.* NOTE: this can be optimized, as the timestamps of upper level entities