bfq_calc_finish(9)
π bfq_calc_finish(9) β Kernel API Manual energy π
Okay bestie, so this is a tiny little function that does one thing and does it iconically: it hands a finish time to an entity. That's it, that's the whole vibe. It's giving "I'm a helper function and I know my purpose." No cap.
πΈ NAME πΈ
bfq_calc_finish β assign the finish time to an entity.
Like, you give it an entity, you give it some service, and it goes "cool, here's your finish time bestie, slay." That's the whole job. Short, sweet, and useful. π
π¦ SYNOPSIS π¦
void bfq_calc_finish (struct bfq_entity *entity , unsigned long service
);
Yeah it's a void function, so it doesn't return anything. It just does the thing and leaves. Respect. π«Ά
β¨ ARGUMENTS β¨
entityβ the entity to act upon. This is the main character of the function. The one getting its finish time assigned. Main character energy fr fr. π₯serviceβ the service to be charged to the entity. Like, the amount of service that gets accounted toentity. It's anunsigned long, so it's a whole number, no decimals, no drama. π
π SEE ALSO π
Lowkey the supporting cast is huge. Like, this function is in the ./block/bfq-wf2q.c kernel file, and it hangs out with so many other functions. Here's the full squad, no one left behind:
bfq_gt(9)bfq_update_next_in_service(9)bfq_delta(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_deactivate_entity(9)bfq_calc_vtime_jump(9)bfq_first_active_entity(9)__bfq_lookup_next_entity(9)bfq_lookup_next_entity(9)
That's a whole friend group right there. Periodt. π
Listen bestie, if you're poking around in bfq_calc_finish, you're probably deep in the BFQ scheduler internals. Stay curious, read the friend group functions too, and don't break anything. You got this. πͺ
β¨ that's the whole page β¨
Source file: ./block Β· Version date: October 2026 Β· Kernel API Manual, bestie β now go assign some finish times and slay. ππ¦πΈ
π¦ 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