函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:The next function, invoked after the input queue bfqq switches from* idle to busy, updates the budget of bfqq. The function also tells* whether the in-service queue should be expired, by returning* true

函数原型:static bool bfq_bfqq_update_budg_for_activation(struct bfq_data *bfqd, struct bfq_queue *bfqq, bool arrived_in_time)

返回类型:bool

参数:

类型参数名称
struct bfq_data *bfqd
struct bfq_queue *bfqq
boolarrived_in_time
1449  entity等于ity representing this queue in the scheduler
1458  如果bfq_bfqq_non_blocking_wait_rq(bfqq)且arrived_in_timebfq_bfqq_budget_left(bfqq)大于0则
1477  budget, used also to calculate F_i: F_i = S_i + @budget / @weight 等于min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(unsignedlong, bfq_bfqq_budget_left(bfqq), maximum budget allowed from the feedback mechanism )
1490  amount of service received during the last service slot 等于0
1492  返回:true
1498  amount of service received during the last service slot 等于0
1499  budget, used also to calculate F_i: F_i = S_i + @budget / @weight 等于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 )
1501  bfq_clear_bfqq_non_blocking_wait_rq(bfqq)
1502  返回:false
调用者
名称描述
bfq_bfqq_handle_idle_busy_switch