drm_sched_job_done(9)
π drm_sched_job_done(9) β Kernel API Manual π
okay so bestie, we're in the Kernel API Manual today and the star of the show is drm_sched_job_done(9). pull up a chair, this one's short but it matters β¨
πΈ NAME πΈ
drm_sched_job_done β complete a job. that's it. that's the whole vibe. the job is done, we're wrapping it up, slay π
π¦ SYNOPSIS π¦
void drm_sched_job_done (struct drm_sched_job *s_job , int result );
literally just hand it the job and tell it how it went, no cap π«Ά
β¨ ARGUMENTS β¨
s_jobβ pointer to the job which is done. yes, that job. the one that just finished. give it a little pat on the head πresultβ0on success,-ERRNOon error. so if things went great it's a big fat zero, and if they didn't, you're passing along a negative errno and being emo about it π
π DESCRIPTION π
Finish the job's fence and resubmit the work items. that's the whole thing, bestie β it ties off the fence (so everyone waiting on it finally gets the signal, iconic behavior) and then re-submits the work items so the scheduler keeps rolling. main character energy for a two-line function, honestly π
π SEE ALSO π
the whole friend group, fr fr β if you liked this one you're gonna be obsessed with the rest π
- Kernel file
./drivers/gpu/drm/scheduler/sched_main.cOverview(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_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_fini(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)
okay that's the whole page, you ate that π this little drop lives under ./drivers/gpu/drm/scheduler, dated October 2026, and it's drm_sched_job_done(9) β go forth and complete those jobs, bestie, periodt π§ββοΈβ
π¦ 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