drm_sched_j...dependencies(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 β€” the dma_resv object we're pulling fences from. get those fences, bestie πŸŽ€
  • usage β€” the dma_resv_usage used 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