__bfq_deactivate_entity(9)
β¨ __bfq_deactivate_entity π
Okay so bestie, this one is from the Kernel API Manual, and it's a kernel-level function for the BFQ scheduler β deep lore, I know, but stay with me π«Ά
πΈ NAME πΈ
__bfq_deactivate_entity β updates sched_data and the service trees for an entity, so the whole thing represents that entity as inactive β¨ Like, we're packing up its little desk and marking it "away" π
π¦ SYNOPSIS π¦
bool __bfq_deactivate_entity (struct bfq_entity *entity , bool
ins_into_idle_tree );
Yep, it returns a bool, takes a struct bfq_entity * and a bool, and no, we do not ask questions about the return value here β that's just how it is, periodt π
π ARGUMENTS π
entityβ the entity being deactivated, aka the main character of this little operation πins_into_idle_treeβ if this isfalse, the entity will not be put into the idle tree. That's it, that's the whole rule π
π DESCRIPTION π
If it's necessary and allowed, it puts entity into the idle tree. Cute, simple, conditional.
NOTE: entity may be on no tree at all if it's in service. Not a bug, just a vibe β don't come for me, that's literally what the manpage says π
π₯ SEE ALSO π₯
Kernel file ./block/bfq-wf2q.c, plus this entire friend group of functions, all of them, no cap:
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_node(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_calc_vtime_jump(9)bfq_first_active_entity(9)__bfq_lookup_next_entity(9)bfq_lookup_next_entity(9)
Literally the whole squad, iykyk π§
And that's the tea, bestie π This page lives under ./block, dated October 2026, and it's the __bfq_deactivate_entity(9) page β go forth and deactivate responsibly π
π¦ 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