drm_sched_rq_select_entity(9)
π drm_sched_rq_select_entity(9) π
okay so welcome to the Kernel API Manual, bestie β this page is literally about selecting an entity that provides a job to run, and it's giving main-character scheduler energy. no cap. π«Άβ¨
π SYNOPSIS π
struct drm_sched_entity * drm_sched_rq_select_entity (struct drm_gpu_scheduler *sched , struct drm_sched_rq *rq );
π ARGUMENTS π
schedβ the gpu scheduler. like, the boss of the GPU scheduling vibe πrqβ scheduler run queue to check. yes bestie, we are checking the run queue fr fr π¦
β¨ DESCRIPTION β¨
The whole mission is: Find oldest waiting ready entity. periodt. π
Return an entity if one is found; return an error-pointer (!NULL) if an entity was ready, but the scheduler had insufficient credits to accommodate its job; return NULL, if no ready entity was found. that's the vibe check β three possible outcomes, no guessing π
lowkey important:NULLis not the same as the error-pointer (!NULL) here, so don't mix them up bestie π
π SEE ALSO π
Kernel file ./drivers/gpu/drm/scheduler/sched_rq.c β and the whole squad is:
drm_sched_rq_init(9)drm_sched_rq_add_entity(9)drm_sched_rq_remove_entity(9)drm_sched_rq_pop_entity(9)
mwah π source/version: ./drivers/gpu/drm/scheduler, date: October 2026, and the page is drm_sched_rq_select_entity(9) β bye bestie, slay your scheduler studies! πβ¨π
π¦ 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