STRUCT DRM_SCHED_RQ(9)
β¨ NAME β¨
Okay so bestie, welcome to the manual page for struct drm_sched_rq(9) from the Kernel API Manual π. This struct is literally the queue of entities to be scheduled β no cap, that's the whole vibe.
π SYNOPSIS π
struct drm_sched_rq {
struct drm_gpu_scheduler *sched;
spinlock_t lock;
ktime_t rr_ts;
struct list_head entities;
struct rb_root_cached rb_tree_root;
enum drm_sched_priority head_prio;
};
π Members π
schedβ the scheduler that this rq belongs to. Like, whose queue is this? This scheduler's, periodt.lockβ protectsentities,rb_tree_root,rr_ts, andhead_prio. Respect the lock, bestie π.rr_tsβ a monotonically incrementing fake timestamp for RR mode. It's giving "pretend clock, real scheduling energy" β¨.entitiesβ the list of the entities to be scheduled. The lineup, the queue, the main characters π .rb_tree_rootβ root of the time based priority queue of entities for FIFO scheduling. It's the top of the tree, no cap π³.head_prioβ priority of the top tree element. So you know what's sitting at the front of the priority tree π.
π¦ Description π¦
A run queue is a set of entities that are scheduling command submissions for one specific ring. It implements the scheduling policy that selects the next entity to emit commands from. Basically, it's the vibe check that decides which entity gets to send commands next π.
π SEE ALSO π
- Kernel file
./include/drm/gpu_scheduler.h DRM_SCHED_FENCE_DONT_PIPELINE(9)DRM_SCHED_FENCE_FLAG_HAS_DEADLINE_BIT(9)struct drm_sched_entity(9)struct drm_sched_fence(9)struct drm_sched_job(9)enum drm_gpu_sched_stat(9)struct drm_sched_backend_ops(9)struct drm_gpu_scheduler(9)struct drm_sched_init_args(9)struct drm_sched_pending_job_iter(9)drm_sched_for_each_pending_job(9)
Source/version vibes: ./include/drm and struct drm_sched_rq(9) Β· date: October 2026 β that's the whole manual bestie, 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