drm_sched_fo..._pending_job(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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. pass NULL here 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 __entity is NULL) 🎯
  • 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 🫢:


πŸ’‘ 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