drm_sched_jo...j_dependency(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’œ 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 with
  • handle β€” the syncobj handle you wanna look up, iykyk
  • point β€” 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 🌈

  • 0 on 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:

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