drm_sched_suspend_timeout(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ drm_sched_suspend_timeout πŸ’…

okay so bestie, we're in the Kernel API Manual today and this one is a tiny little function with a big job: it puts the scheduler's job timeout to sleep 😴


πŸŽ€ NAME πŸŽ€

drm_sched_suspend_timeout β€” suspends the scheduler job timeout, literally what it says on the tin 🫢


🌸 SYNOPSIS 🌸

unsigned long drm_sched_suspend_timeout (struct drm_gpu_scheduler *sched
);

πŸ¦‹ ARGUMENTS πŸ¦‹

  • sched β€” the scheduler instance you want to suspend the timeout on. that's it, that's the whole argument list, she's low maintenance πŸ’…

⭐ DESCRIPTION ⭐

so the way this works is: it suspends the delayed work timeout for the scheduler. how? by straight up modifying that delayed work timeout to an arbitrary large value β€” MAX_SCHEDULE_TIMEOUT in this case. like, "go away and come back never" energy 😭 iconic honestly.

and then it returns the timeout remaining. so you get your little leftover number back, no cap πŸ’–


πŸ’œ SEE ALSO πŸ’œ

the whole friend group, fr fr β€” and the kernel file that started it all, ./drivers/gpu/drm/scheduler/sched_main.c:

  • Overview(9)
  • Flow Control(9)
  • sched_policy (int)(9)
  • drm_sched_can_queue(9)
  • drm_sched_run_job_queue(9)
  • drm_sched_run_free_queue(9)
  • drm_sched_job_done(9)
  • drm_sched_job_done_cb(9)
  • drm_sched_start_timeout(9)
  • drm_sched_tdr_queue_imm(9)
  • drm_sched_fault(9)
  • drm_sched_resume_timeout(9)
  • drm_sched_job_reinsert_on_false_timeout(9)
  • drm_sched_stop(9)
  • drm_sched_start(9)
  • drm_sched_resubmit_jobs(9)
  • drm_sched_job_init(9)
  • drm_sched_job_arm(9)
  • drm_sched_job_add_dependency(9)
  • drm_sched_job_add_syncobj_dependency(9)
  • drm_sched_job_add_resv_dependencies(9)
  • drm_sched_job_add_implicit_dependencies(9)
  • drm_sched_job_has_dependency(9)
  • drm_sched_job_cleanup(9)
  • drm_sched_wakeup(9)
  • drm_sched_select_entity(9)
  • drm_sched_get_finished_job(9)
  • drm_sched_pick_best(9)
  • drm_sched_free_job_work(9)
  • drm_sched_run_job_work(9)
  • drm_sched_init(9)
  • drm_sched_fini(9)
  • drm_sched_increase_karma(9)
  • drm_sched_wqueue_ready(9)
  • drm_sched_wqueue_stop(9)
  • drm_sched_wqueue_start(9)
  • drm_sched_is_stopped(9)
  • drm_sched_job_is_signaled(9)

k bye bestie, mwah πŸ’‹ this lil page lives under ./drivers/gpu/drm/scheduler, and it's stamped October 2026 β€” so like, future iconic πŸŒˆβœ¨πŸŽ€

πŸ“¦ where this page comes from