函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:q_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

函数原型:void bfq_bfqq_served(struct bfq_queue *bfqq, int served)

返回类型:void

参数:

类型参数名称
struct bfq_queue *bfqq
intserved
837  entity等于ity representing this queue in the scheduler
840  如果非Cumulative service received from the @bfq_queue since the* last transition from idle to backlogged.ime of first I/O for this queue 等于jiffies
843  如果actor by which the weight of this queue is multiplied 大于1则Cumulative service received from the @bfq_queue since its* last transition to weight-raised state.加等于served
846  Cumulative service received from the @bfq_queue since the* last transition from idle to backlogged.加等于served
848  st等于bfq_entity_service_tree(entity)
850  amount of service received during the last service slot 加等于served
852  scheduler virtual time 加等于q_delta - map service into the virtual time domain.*@service: amount of service.*@weight: scale factor (weight of an entity or weight sum).
853  q_forget_idle - update the idle tree if necessary.*@st: the service tree to act upon.* To preserve the global O(log N) complexity we only remove one entry here;* as the idle tree will not grow indefinitely this can be done safely.
855  bfq_log_bfqq(parent bfq_data , bfqq, "bfqq_served %d secs", served)
调用者
名称描述
bfq_bfqq_charge_timeq_bfqq_charge_time - charge an amount of service equivalent to the length* of the time interval during which bfqq has been in* service