函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Update weight and priority of entity

函数原型:struct bfq_service_tree *__bfq_entity_update_weight_prio(struct bfq_service_tree *old_st, struct bfq_entity *entity, bool update_class_too)

返回类型:struct bfq_service_tree

参数:

类型参数名称
struct bfq_service_tree *old_st
struct bfq_entity *entity
boolupdate_class_too
733  new_st等于old_st
735  如果 flag, set to request a weight, ioprio or ioprio_class change
736  bfqq等于bfq_entity_to_bfqq(entity)
738  struct bfq_data * bfqd = NULL
745  如果bfqqbfqd等于parent bfq_data
756  smp_rmb()
757  scheduler weight sum; active and idle entities contribute to it 减等于 weight of the queue
775  如果bfqqupdate_class_toocurrent ioprio and ioprio class 等于xt ioprio and ioprio class if a change is in progress
782  如果非bfqqcurrent ioprio and ioprio class 恒等于xt ioprio and ioprio class if a change is in progress flag, set to request a weight, ioprio or ioprio_class change 等于0
792  new_st等于bfq_entity_service_tree(entity)
794  prev_weight等于 weight of the queue
795  new_weight等于 original weight, used to implement weight boosting 乘如果bfqqactor by which the weight of this queue is multiplied 否则1
802  如果prev_weight不等于new_weightbfqq
806  weight of the queue 等于new_weight
816  scheduler weight sum; active and idle entities contribute to it 加等于 weight of the queue
818  如果new_st不等于old_st B-WF2Q+ start and finish timestamps [sectors/weight] 等于scheduler virtual time
822  返回:new_st
调用者
名称描述
bfq_update_fin_time_enqueue
bfq_update_wr_data