drm_sched_fini(9)
π drm_sched_fini(9) β your fave scheduler teardown era π
okay so this is the Kernel API Manual page for drm_sched_fini(9), and bestie, it is literally the Destroy a gpu scheduler function. No cap. π«Ά
β¨ NAME β¨
drm_sched_fini β Destroy a gpu scheduler π₯
π SYNOPSIS π
void drm_sched_fini (struct drm_gpu_scheduler *sched );
π¦ ARGUMENTS π¦
schedβ scheduler instance π«Ά
π DESCRIPTION π
Okay so drm_sched_fini tears down and cleans up the scheduler. That's the whole assignment, and it ate. π
It stops submission of new jobs to the hardware through struct drm_sched_backend_ops.run_job. Literally no new jobs sliding into the hardware queue. ββ¨
If struct drm_sched_backend_ops.cancel_job is implemented, all jobs will be canceled through it and afterwards cleaned up through struct drm_sched_backend_ops.free_job. Orderly-ish? Iconic. π
β οΈ real talk: if cancel_job is not implemented, memory could leak. π That's not a slay, bestie β that's a leak. Keep it in mind.
π SEE ALSO π
Kernel file ./drivers/gpu/drm/scheduler/sched_main.c is the main character here, and the whole linked crew is:
Overview(9)Flow Control(9)sched_policy (int)(9)drm_sched_can_queue(9)drm_sched_run_job_queue(9)drm_sched_run_free_queue(9)drm_sched_job_done(9)drm_sched_job_done_cb(9)drm_sched_start_timeout(9)drm_sched_tdr_queue_imm(9)drm_sched_fault(9)drm_sched_suspend_timeout(9)drm_sched_resume_timeout(9)drm_sched_job_reinsert_on_false_timeout(9)drm_sched_stop(9)drm_sched_start(9)drm_sched_resubmit_jobs(9)drm_sched_job_init(9)drm_sched_job_arm(9)drm_sched_job_add_dependency(9)drm_sched_job_add_syncobj_dependency(9)drm_sched_job_add_resv_dependencies(9)drm_sched_job_add_implicit_dependencies(9)drm_sched_job_has_dependency(9)drm_sched_job_cleanup(9)drm_sched_wakeup(9)drm_sched_select_entity(9)drm_sched_get_finished_job(9)drm_sched_pick_best(9)drm_sched_free_job_work(9)drm_sched_run_job_work(9)drm_sched_init(9)drm_sched_increase_karma(9)drm_sched_wqueue_ready(9)drm_sched_wqueue_stop(9)drm_sched_wqueue_start(9)drm_sched_is_stopped(9)drm_sched_job_is_signaled(9)
That's the whole page, bestie β from ./drivers/gpu/drm/scheduler, dated October 2026, all about drm_sched_fini(9). πβ¨
π¦ 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