Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\bfq-iosched.c Create Date:2022-07-28 17:54:41
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:static bool bfq_bfqq_update_budg_for_activation(struct bfq_data *bfqd, struct bfq_queue *bfqq, bool arrived_in_time)

Type:bool

Parameter:

TypeParameterName
struct bfq_data *bfqd
struct bfq_queue *bfqq
boolarrived_in_time
1449  entity = ity representing this queue in the scheduler
1458  If bfq_bfqq_non_blocking_wait_rq(bfqq) && arrived_in_time && bfq_bfqq_budget_left(bfqq) > 0 Then
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  Return 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  Return false
Caller
NameDescribe
bfq_bfqq_handle_idle_busy_switch