drm_sched_j...dependencies(9)
π drm_sched_job_add_implicit_dependencies(9) β like, the Kernel API Manual girlies finally got one π
okay so bestie, welcome to the Kernel API Manual entry for drm_sched_j...dependencies(9) β yes the header is abbreviated, no I don't know why, and yes we're gonna get through this together. grab a strawberry drink π and let's go.
β¨ NAME β¨
drm_sched_job_add_implicit_dependencies β adds implicit dependencies as job dependencies π«Ά
πΈ SYNOPSIS πΈ
int drm_sched_job_add_implicit_dependencies (struct drm_sched_job *job ,
struct drm_gem_object *obj , bool write );
π¦ ARGUMENTS π¦
jobβ the scheduler job you're adding the dependencies to. main character energy, it's receiving the deps πobjβ the gem object you're adding new dependencies from.writeβ whether the job might write the object. and if it might? then we need to depend on shared fences in the reservation object. no cap, that's the whole bit π₯
π DESCRIPTION π
This should be called after drm_gem_lock_reservations on your array of GEM objects used in the job, but before updating the reservations with your own fences.
like β order matters, bestie. before. not after. the way that sequencing is literally the entire vibe check πβ¨
β RETURN β
0 on success, or an error on failing to expand the array. that's it, that's the return π
π SEE ALSO π
Kernel file ./drivers/gpu/drm/scheduler/sched_main.c β plus the whole friend group, honestly:
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_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)
like that's a whole squad and every single one of them is invited π§π
ok that's the page!! it lives in./drivers/gpu/drm/scheduler, it's dated October 2026, and the footer spells itdrm_sched_j...dependencies(9)β abbreviated again, iconic behaviour honestly. go add those implicit deps, bestie, you're gonna slay πβ¨π
π¦ 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