drm_sched_jo...j_dependency(9)
π drm_sched_jo...j_dependency(9) β straight from the Kernel API Manual, bestie
okay so picture this: you're deep in the kernel, the manual name is Kernel API Manual, and we're about to talk about one very specific little function that quietly does a LOT of heavy lifting. pull up a chair π
β¨ NAME β¨
drm_sched_job_add_syncobj_dependency β adds a syncobj's fence as a job dependency. that's it, that's the whole vibe π
π¦ SYNOPSIS π¦
int drm_sched_job_add_syncobj_dependency (struct drm_sched_job *job ,
struct drm_file *file , u32 handle , u32 point );
like, four args, one int back. slay, honestly β¨
πΈ ARGUMENTS πΈ
jobβ the scheduler job you're adding dependencies to. it's the main character here πfileβ the drm file private pointer, aka the DRM-side context you're rolling withhandleβ the syncobj handle you wanna look up, iykykpointβ the timeline point. yes, that timeline point π«
π§ DESCRIPTION π§
so what does it actually do? it takes the fence that matches the syncobj you gave it and adds it to job. that's the whole tea, no cap. fence in β dependency attached β job knows what it's waiting on π«Ά
π RETURN π
0on success π- or an error on failing to expand the array π (the array run out of room, it happens to the best of us)
β SEE ALSO β
okay this list is LONG and honestly iconic, buckle up bestie:
- 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(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_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)
like, the whole sched family reunion fr fr π«Ά
π reminder bestie: error only happens when the array can't expand. don't @ me, that's literally what the page says.
and that's the page!! brought to you by ./drivers/gpu/drm/scheduler, dated October 2026, page name drm_sched_jo...j_dependency(9). go forth and add those dependencies, queen ππ
π¦ 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