drm_sched_rq_add_entity(9)
β¨ drm_sched_rq_add_entity(9) β¨
okay so bestie, welcome to the Kernel API Manual entry for drm_sched_rq_add_entity(9) β literally the glow-up moment where a scheduler entity gets yeeted onto a run queue π
this one's short and sweet, no cap.
πΈ NAME πΈ
drm_sched_rq_add_entity β add an entity π
π¦ SYNOPSIS π¦
struct drm_gpu_scheduler * drm_sched_rq_add_entity (struct
drm_sched_entity *entity , ktime_t ts );
like, it hands you back a struct drm_gpu_scheduler * β main character return type fr fr π
π ARGUMENTS π
entityβ the scheduler entity in question, the little star of the show πtsβ the submission timestamp,ktime_tflavored β±οΈ (yes it matters, don't skip it)
π₯ DESCRIPTION π₯
Adds a scheduler entity to the run queue. that's it, that's the whole vibe β¨ it's giving "short function, big responsibility." obsessed actually π«Ά
π RETURN π
Returns the DRM scheduler</> selected to handle this entity β OR NULL if the entity has been stopped and cannot be submitted to π so like, always check for NULL bestie, the entity could be in its flop era and you'd never know π
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/scheduler/sched_rq.c drm_sched_rq_init(9)drm_sched_rq_remove_entity(9)drm_sched_rq_pop_entity(9)drm_sched_rq_select_entity(9)
go read the whole squad, they're all iconic in their own way π§π
reminder: NULL is a real possibility here, not a jump scare π handle it and you're slaying.
and that's the page!! source lives at ./drivers/gpu/drm/scheduler, version vibes are Kernel API Manual, and the date stamp is October 2026 β mwah, bye bestie, go add some entities π
πβ
π¦ 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