函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:bfq_bfqq_save_state

函数原型:static void bfq_bfqq_save_state(struct bfq_queue *bfqq)

返回类型:void

参数:

类型参数名称
struct bfq_queue *bfqq
2679  bic等于Pointer to the bfq_io_cq owning the bfq_queue, set to %NULL* if the queue is shared.
2686  如果非bic则返回
2689  * Save the weight when a merge occurs, to be able * to restore it in case of split. If the weight is not * correctly resumed when the queue is recycled, * then the weight of the recycled queue could differ * from the weight of the original queue.等于 original weight, used to implement weight boosting
2690  saved_ttime等于associated @bfq_ttime struct
2691  * Snapshot of the has_short_time flag before merging; taken * to remember its value while the queue is merged, so as to * be able to restore it in case of split.等于bfq_bfqq_has_short_ttime(bfqq)
2692  * Same purpose as the previous two fields for the I/O bound * classification of a queue.等于bfq_bfqq_IO_bound(bfqq)
2693  * Same purpose as the previous fields for the value of the * field keeping the queue's belonging to a large burst等于bfq_bfqq_in_large_burst(bfqq)
2694  * True if the queue belonged to a burst list before its merge * with another cooperating queue.等于非hlist_unhashed( & de for the device's burst list )
2695  如果此条件成立可能性小(为编译器优化)(bfq_bfqq_just_created(bfqq) && !bfq_bfqq_in_large_burst(bfqq) && if set to true, low-latency heuristics are enabled )则
2707  * Similar to previous fields: save wr information.等于* Maximum factor by which the weight of a weight-raised queue * is multiplied.
2708  saved_wr_start_at_switch_to_srt等于Return the farthest past time instant according to jiffies* macros.
2709  saved_wr_cur_max_time等于bfq_wr_duration(parent bfq_data )
2710  saved_last_wr_start_finish等于jiffies
2711  否则
2712  * Similar to previous fields: save wr information.等于actor by which the weight of this queue is multiplied
2713  saved_wr_start_at_switch_to_srt等于Value of wr start time when switching to soft rt
2715  saved_last_wr_start_finish等于Start time of the current weight-raising period if* the @bfq-queue is being weight-raised, otherwise* finish time of the last weight-raising period.
2716  saved_wr_cur_max_time等于current maximum weight-raising time for this queue
调用者
名称描述
bfq_merge_bfqqs