函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:q_updated_next_req - update the queue after a new next_rq selection

函数原型:static void bfq_updated_next_req(struct bfq_data *bfqd, struct bfq_queue *bfqq)

返回类型:void

参数:

类型参数名称
struct bfq_data *bfqd
struct bfq_queue *bfqq
942  entity等于ity representing this queue in the scheduler
943  next_rq等于 fifo isn't expired, next request to serve
946  如果非next_rq则返回
949  如果bfqq恒等于 bfq_queue in service 则返回
956  new_budget等于max_t - return maximum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(unsignedlong, max_t - return maximum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(unsignedlong, maximum budget allowed from the feedback mechanism , see the definition of bfq_async_charge_factor for details ), amount of service received during the last service slot )
960  如果 budget, used also to calculate F_i: F_i = S_i + @budget / @weight 不等于new_budget
961  budget, used also to calculate F_i: F_i = S_i + @budget / @weight 等于new_budget
962  bfq_log_bfqq(bfqd, bfqq, "updated next rq: new budget %lu", new_budget)
964  bfq_requeue_bfqq(bfqd, bfqq, false)
调用者
名称描述
bfq_add_request
bfq_remove_request
bfq_request_merged