detach_entity_load_avg(9)
π NAME π
Okay bestie, welcome to the detach_entity_load_avg(9) page from the Kernel API Manual β¨. Short version: detach_entity_load_avg detaches this entity from its cfs_rq load avg. That's the whole assignment, and it ate π
.
πΈ SYNOPSIS πΈ
void detach_entity_load_avg (struct cfs_rq *cfs_rq , struct sched_entity
*se );
So it's giving void, with a struct cfs_rq *cfs_rq and a struct sched_entity *se in the group chat. Slay.
π ARGUMENTS π
cfs_rqβ thecfs_rqto detach from, periodt.seβ thesched_entityto detach, no cap.
π₯ DESCRIPTION π₯
Okay so the one thing you literally cannot skip: you must call update_cfs_rq_load_avg before this. Why? Because this function relies on cfs_rq->avg.last_update_time being current. Not current = not the vibe π.
Bestie, this is a hard requirement, not a suggestion. Call update_cfs_rq_load_avg first, fr fr.
π¦ SEE ALSO π¦
The kernel file is ./kernel/sched/fair.c β that's where the lore lives π
update_tg_load_avg(9)update_cfs_rq_load_avg(9)attach_entity_load_avg(9)cpu_util(9)sched_use_asym_prio(9)sched_group_asym(9)update_sg_lb_stats(9)update_sd_pick_busiest(9)idle_cpu_without(9)update_sd_lb_stats(9)calculate_imbalance(9)sched_balance_find_src_group(9)
That's the whole page, bestie. Source/version: ./kernel/sched; date: October 2026; page: detach_entity_load_avg(9) and it's from the Kernel API Manual. Byeee, go detach 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