drm_sched_entity_flush(9)
π drm_sched_entity_flush(9) β Kernel API Manual β¨
okay bestie, welcome to drm_sched_entity_flush(9) from the Kernel API Manual β this one's all about flushing a context entity and it's lowkey iconic π
πΈ NAME πΈ
drm_sched_entity_flush β Flush a context entity π«
β¨ SYNOPSIS β¨
long drm_sched_entity_flush (struct drm_sched_entity *entity , long
timeout );
π¦ ARGUMENTS π¦
entityβ scheduler entity π (the main character of this whole operation, ngl)timeoutβ time to wait in for Q to become empty in jiffies β³ fr fr, that's the clock you're working with
π DESCRIPTION π
So here's the tea β: this is basically splitting drm_sched_entity_fini into two functions, and drm_sched_entity_flush is the first one π«Ά. What it does is:
- does the waiting β°
- removes the entity from the runqueue πͺ
- returns an error when the process was killed π (yep, it'll let you know)
And then β the return value, bestie β it returns the remaining time in jiffies left from the input timeout β so you know exactly how much waiting time you still had on the clock. periodt π
π₯ SEE ALSO π₯
Kernel file ./drivers/gpu/drm/scheduler/sched_entity.c π
drm_sched_entity_stats_release(9)drm_sched_entity_stats_new(9)drm_sched_entity_stats_job_add_gpu_time(9)drm_sched_entity_init(9)drm_sched_entity_modify_sched(9)drm_sched_entity_error(9)drm_sched_entity_kill(9)drm_sched_entity_fini(9)drm_sched_entity_destroy(9)drm_sched_entity_set_priority(9)drm_sched_entity_push_job(9)
π and that's the whole vibe π β this page lives under ./drivers/gpu/drm/scheduler, dated October 2026, and it's giving Kernel API Manual energy all the way through π§π catch you in the next one, bestie! π
π¦ 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