detach_entity_load_avg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 β€” the cfs_rq to detach from, periodt.
  • se β€” the sched_entity to 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 πŸ‘‘


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