bfq_update_active_node(9)
π¦ bfq_update_active_node(9) β like, the glow-up page for a node's min_start β¨
okay so before we even start: this is from the Kernel API Manual, section 9, and the whole page is literally about giving one lil red-black-tree node a lil refresh π stay with me bestie, it's shorter than it looks.
πΈ NAME πΈ
bfq_update_active_node β recalculate min_start.
π SYNOPSIS π
void bfq_update_active_node (struct rb_node *node );
π ARGUMENTS π
nodeβ the node to update. that's it. that's the whole argument list, she's low maintenance π«Ά
β¨ DESCRIPTION β¨
so here's the vibe check: node may have changed position, or one of its children may have moved. when that happens, this function swoops in and updates its min_start value π§
and here's the important part β a precondition, not a suggestion: the left and right subtrees are assumed to hold a correct min_start value. the function is trusting you on that fr fr. it's not re-checking the kids, it's just fixing up the parent's number π
ngl this one is the "recompute after the tree shifted" helper, and it assumes the subtrees underneath are already slaying correctly before you call it π
π SEE ALSO π
Kernel file ./block/bfq-wf2q.c β and the whole extended friend group:
bfq_gt(9)bfq_update_next_in_service(9)bfq_delta(9)bfq_calc_finish(9)bfq_entity_of(9)bfq_extract(9)bfq_idle_extract(9)bfq_insert(9)bfq_update_min(9)bfq_update_active_tree(9)bfq_active_insert(9)bfq_ioprio_to_weight(9)bfq_weight_to_ioprio(9)bfq_find_deepest(9)bfq_active_extract(9)bfq_idle_insert(9)bfq_forget_entity(9)bfq_put_idle_entity(9)bfq_forget_idle(9)bfq_bfqq_served(9)bfq_bfqq_charge_time(9)__bfq_activate_entity(9)__bfq_requeue_entity(9)bfq_activate_requeue_entity(9)__bfq_deactivate_entity(9)bfq_deactivate_entity(9)bfq_calc_vtime_jump(9)bfq_first_active_entity(9)__bfq_lookup_next_entity(9)bfq_lookup_next_entity(9)
and that's the whole page, bestie π sign-off time: this lil number lives under the ./block source, dated October 2026, and yes it's bfq_update_active_node(9) again because we always bring it back to her πβ¨ iykyk π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms