drm_sched_can_queue(9)
β¨ drm_sched_can_queue β the "can we fit one more??" check β¨
okay so real talk, this one lives in the Kernel API Manual (section 9), and it's likeβ¦ the bouncer at the club door of your GPU scheduler. bestie, it literally just tells you if there's room for one more π
πΈ NAME πΈ
drm_sched_can_queue β can we queue more to the hardware? π
π SYNOPSIS π
bool drm_sched_can_queue(struct drm_gpu_scheduler *sched,
struct drm_sched_entity *entity);
π¦ ARGUMENTS π¦
schedβ the scheduler instance β¨ like, the whole vibe.entityβ the scheduler entity π«Ά the specific little guy we're trying to push work from.
π DESCRIPTION π
Returns true if we can push at least one more job from entity π
β and false otherwise. that's it, that's the whole function, no cap. it's giving "quick vibe check before we commit" π₯
ngl it returns a bool, so likeβ¦ don't overthink it, bestie. one job minimum. yes or no. iconic behaviour honestly π
π SEE ALSO π
okay this list is LONG but we do not skip a single one, periodt π β the kernel file ./drivers/gpu/drm/scheduler/sched_main.c, plus:
Overview(9)Flow Control(9)sched_policy (int)(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_suspend_timeout(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)
like I said. every. single. one. π
and that's the whole page, bestie π this lil cutie came from ./drivers/gpu/drm/scheduler, dated October 2026 β stay hydrated, read your kernel docs, and slay πβ¨π¦
π¦ 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