drm_sched_fo..._pending_job(9)
β¨ drm_sched_for_each_pending_job β¨
okay so bestie, this is a page straight out of the Kernel API Manual and it's literally about looping over every pending job in a DRM scheduler π like, the whole vibe is "glow-up your iteration game." stay with me, it's not as scary as it sounds, i promise π«Ά
π NAME π
drm_sched_for_each_pending_job β the iterator that walks you through each and every pending job in a scheduler β¨ no cap, that's the whole thing.
π SYNOPSIS π
drm_sched_for_each_pending_job (__job , __sched , __entity );
yes queen, three args, that's it, that's the whole signature π
πΈ ARGUMENTS πΈ
__jobβ the current pending job you're iterating over rn. this is the main character of each loop pass π__schedβ the DRM scheduler you're iterating over the pending jobs of. the whole vibe source fr fr__entityβ the DRM scheduler entity used to filter which jobs you get. passNULLhere and it means no filter at all, everything comes through π«
π¦ DESCRIPTION π¦
so basically: this is an iterator for each pending job in the scheduler, and it does two iconic things at once:
- it filters on an entity β so you can scope it down to just the jobs you care about (or not, if
__entityisNULL) π― - it enforces that the scheduler is fully stopped β like, fully. not half, not kinda, fully. so make sure that's true before you go iterating, bestie, it's giving "read the room" energy π
that's the whole description, she's short but she ate π₯
π SEE ALSO π
the kernel file lives here, go peek at it if you want the deep lore:
./include/drm/gpu_scheduler.h
and the whole friend group of related symbols, all of them, no skipping π«Ά:
DRM_SCHED_FENCE_DONT_PIPELINE(9)DRM_SCHED_FENCE_FLAG_HAS_DEADLINE_BIT(9)struct drm_sched_entity(9)struct drm_sched_rq(9)struct drm_sched_fence(9)struct drm_sched_job(9)enum drm_gpu_sched_stat(9)struct drm_sched_backend_ops(9)struct drm_gpu_scheduler(9)struct drm_sched_init_args(9)struct drm_sched_pending_job_iter(9)
π‘ friendly reminder: the "scheduler is fully stopped" thing is a real requirement, not a suggestion. don't skip the vibe check on that one π
anyway that's the page!! ty for reading, ily, go iterate responsibly π this lil doc came from ./include/drm and it's dated October 2026 β so like, she's from the future, obviously iconic π see you in the next loop bestie, mwah π
β¨
π¦ 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