drm_sched_stop(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_sched_stop(9) β€” like, the Kernel API Manual page, bestie ✨

Okay so we're in the Kernel API Manual today and this one's called drm_sched_stop(9) and honestly? It does exactly what it says on the tin. Let's get into it 🫢


🌸 NAME 🌸

drm_sched_stop β€” stop the scheduler. That's it. That's the whole vibe. ✨


πŸŽ€ SYNOPSIS πŸŽ€

void drm_sched_stop (struct drm_gpu_scheduler *sched , struct
       drm_sched_job *bad );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • sched β€” the scheduler instance in question. Your main character, basically πŸ‘‘
  • bad β€” the job that caused the time out. Yeah. That one. πŸ’€

πŸ’– DESCRIPTION πŸ’–

So what it does is: it stops the scheduler, and it also like... removes and frees all the completed jobs. Both. At once. Multi-tasking icon behavior, no cap. 🧚


πŸ’… NOTE πŸ’…

Okay this part actually matters so read it, bestie β€” I'm serious πŸ™ˆ

The bad job will not be freed, because it might get used later. So it's the caller's responsibility to release it manually if it's not part of the pending list any more. Not me doing your cleanup for you, periodt. πŸ’€

This function is typically used for reset recovery β€” see the docu of drm_sched_backend_ops.timedout_job for the details if you want the full lore iykyk. Do not call it for scheduler teardown, i.e., before calling drm_sched_fini. Just don't. 🚫

And since it's only used for reset recovery, drivers must not call this function in their struct drm_sched_backend_ops.timedout_job callback when they skip a reset using enum drm_gpu_sched_stat.DRM_GPU_SCHED_STAT_NO_HANG. Like, that's the rule. Full stop. πŸŽ€

Fr fr, these caveats are the whole point of the page β€” skipping a reset with DRM_GPU_SCHED_STAT_NO_HANG and then calling this anyway is not the move. πŸ’€

✨ SEE ALSO ✨

Right, buckle up, this list is long long, but every single one of these ate and we're listing them all because we don't do leaving-things-out here: πŸ’œ


Okay that's the whole page, you're officially educated πŸ’– This little drop came from ./drivers/gpu/drm/scheduler and it's dated October 2026 β€” go off, king πŸ‘‘βœ¨

πŸ“¦ where this page comes from