drm_sched_entity_flush(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_sched_entity_flush(9) β€” Kernel API Manual ✨

okay bestie, welcome to drm_sched_entity_flush(9) from the Kernel API Manual β€” this one's all about flushing a context entity and it's lowkey iconic πŸŽ€


🌸 NAME 🌸

drm_sched_entity_flush β€” Flush a context entity πŸ’«


✨ SYNOPSIS ✨

long drm_sched_entity_flush (struct drm_sched_entity *entity , long
timeout );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • entity β€” scheduler entity 🌈 (the main character of this whole operation, ngl)
  • timeout β€” time to wait in for Q to become empty in jiffies ⏳ fr fr, that's the clock you're working with

πŸ’– DESCRIPTION πŸ’–

So here's the tea β˜•: this is basically splitting drm_sched_entity_fini into two functions, and drm_sched_entity_flush is the first one 🫢. What it does is:

  • does the waiting ⏰
  • removes the entity from the runqueue πŸšͺ
  • returns an error when the process was killed πŸ’€ (yep, it'll let you know)

And then β€” the return value, bestie β€” it returns the remaining time in jiffies left from the input timeout ⭐ so you know exactly how much waiting time you still had on the clock. periodt πŸ’…


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/gpu/drm/scheduler/sched_entity.c πŸ‘‘


🌈 and that's the whole vibe 🌈 β€” this page lives under ./drivers/gpu/drm/scheduler, dated October 2026, and it's giving Kernel API Manual energy all the way through πŸ§šπŸ’œ catch you in the next one, bestie! πŸ“

πŸ“¦ where this page comes from