drm_sched_rq_select_entity(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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: NULL is 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:


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