Function report |
Source Code:block\bfq-iosched.c |
Create Date:2022-07-28 17:54:15 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:If the weight-counter tree passed as input contains no counter for* the weight of the input queue, then add that counter; otherwise just* increment the existing counter.* Note that weight-counter trees contain few nodes in mostly symmetric* scenarios
Proto:void bfq_weights_tree_add(struct bfq_data *bfqd, struct bfq_queue *bfqq, struct rb_root_cached *root)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct bfq_data * | bfqd | |
| struct bfq_queue * | bfqq | |
| struct rb_root_cached * | root |
| 727 | bool leftmost = true |
| 741 | If pointer to the weight counter associated with this entity Then Return |
| 750 | If weight of the queue == weight of the queues this counter refers to Then |
| 754 | If weight of the queue < weight of the queues this counter refers to Then new = &rb_left |
| 756 | Else |
| 777 | If Value for the false possibility is greater at compile time(!pointer to the weight counter associated with this entity ) Then Return |
| 782 | rb_insert_color_cached( & Weights tree member (see bfq_data's @queue_weights_tree), root, leftmost) |
| 785 | inc_counter : |
| 787 | ce counter ++ |
| Name | Describe |
|---|---|
| __bfq_entity_update_weight_prio | Update weight and priority of entity |
| bfq_add_bfqq_busy | Called when an inactive queue receives a new request. |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |