函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:q_calc_finish - assign the finish time to an entity.*@entity: the entity to act upon.*@service: the service to be charged to the entity.

函数原型:static void bfq_calc_finish(struct bfq_entity *entity, unsigned long service)

返回类型:void

参数:

类型参数名称
struct bfq_entity *entity
unsigned longservice
293  bfqq等于bfq_entity_to_bfqq(entity)
295  B-WF2Q+ start and finish timestamps [sectors/weight] 等于 B-WF2Q+ start and finish timestamps [sectors/weight] q_delta - map service into the virtual time domain.*@service: amount of service.*@weight: scale factor (weight of an entity or weight sum).
298  如果bfqq
299  bfq_log_bfqq(parent bfq_data , bfqq, "calc_finish: serv %lu, w %d", service, weight of the queue )
302  bfq_log_bfqq(parent bfq_data , bfqq, "calc_finish: start %llu, finish %llu, delta %llu", B-WF2Q+ start and finish timestamps [sectors/weight] , B-WF2Q+ start and finish timestamps [sectors/weight] , q_delta - map service into the virtual time domain.*@service: amount of service.*@weight: scale factor (weight of an entity or weight sum).)
调用者
名称描述
bfq_update_fin_time_enqueue
__bfq_requeue_entity__bfq_requeue_entity - handle requeueing or repositioning of an entity
__bfq_deactivate_entity__bfq_deactivate_entity - update sched_data and service trees for* entity, so as to represent entity as inactive*@entity: the entity being deactivated.*@ins_into_idle_tree: if false, the entity will not be put into the* idle tree.