drm_sched_suspend_timeout(9)
β¨ 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
- 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