drm_sched_j...dependencies(9)
okay bestie, gather round π«Ά this is the Kernel API Manual page for drm_sched_j...dependencies(9), and the actual function we're hyping up is drm_sched_job_add_resv_dependencies. yes, it's giving long-name energy, but it's literally about adding fences from a dma_resv to a scheduler job. no cap π
π NAME π
drm_sched_job_add_resv_dependencies β add all fences from the resv to the job
β¨ SYNOPSIS β¨
int drm_sched_job_add_resv_dependencies (struct drm_sched_job *job ,
struct dma_resv *resv , enum dma_resv_usage usage );
π«Ά ARGUMENTS π«Ά
jobβ the scheduler job you're adding these dependencies to. main character of this operation πresvβ thedma_resvobject we're pulling fences from. get those fences, bestie πusageβ thedma_resv_usageused to filter which fences match. vibe check for fences, basically β¨
π DESCRIPTION π
okay so here's the tea: this function adds all fences matching the given usage from resv to job. every matching fence, no skipping. the way it collects the whole set is honestly iconic π.
β οΈ lock warning, bestie: this must be called with the resv lock held. not optional. do not fumble the lock. π
π₯ RETURN π₯
0 on success β slay. or an error on failing to expand the array β π. that's it, that's the return contract.
π SEE ALSO π
Kernel file ./drivers/gpu/drm/scheduler/sched_main.c, plus the whole squad: 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_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)
that's the whole page, bestie π«Ά source/version: ./drivers/gpu/drm/scheduler β’ date: October 2026 β’ footer title: drm_sched_j...dependencies(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