drm_sched_entity_kill(9)
π drm_sched_entity_kill(9) β a Kernel API Manual moment
okay so bestie, welcome to the Kernel API Manual entry for drm_sched_entity_kill β yes it's from the Kernel API Manual section, and yes it's giving "small function, big consequences" energy. let's get into it π
β¨ NAME β¨
drm_sched_entity_kill β kill an entity's pending jobs and remove it π₯
like, the whole personality of this function is right there in the name. no cap.
π¦ SYNOPSIS π¦
void drm_sched_entity_kill (struct drm_sched_entity *entity );
she takes exactly one thing and returns literally nothing. void. iconic minimalism.
πΈ ARGUMENTS πΈ
entityβ the entity to remove. that's it. that's the whole argument list. go off queen π
π DESCRIPTION π
Removes the entity from the scheduler's run queue and kills all pending jobs. π
so like β she's in the run queue, and then she is not. and everything she had pending? gone. not finished, not flushed, just killed. main character energy fr fr.
This function should be used over drm_sched_entity_flush if it is not desired to actually wait for all pending jobs to finish.
okay this is the part you gotta pay attention to, bestie π β drm_sched_entity_kill vs drm_sched_entity_flush is the whole vibe check here. if you genuinely do NOT want to block around and wait for every pending job to wrap up, drm_sched_entity_kill is your girl. if you do want to wait? that's a drm_sched_entity_flush situation and you're in the wrong manpage, iykyk π«Ά
π SEE ALSO π
the source file, because reading the actual code is self care:
- Kernel file
./drivers/gpu/drm/scheduler/sched_entity.c
and her whole friend group π₯:
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_flush(9)drm_sched_entity_fini(9)drm_sched_entity_destroy(9)drm_sched_entity_set_priority(9)drm_sched_entity_push_job(9)
like okay, group chat is FULL. every one of them linked in here matters, don't @ me π§
and that's the whole page, bestie β¨ this one came from ./drivers/gpu/drm/scheduler, dated October 2026 β so go forth, kill those entities, and remember: only reach for her when you truly don't wanna wait. mwah π
π
π¦ 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