STRUCT DRM_SCHED_INIT_ARGS(9)
πΈ NAME πΈ
okay so struct drm_sched_init_args is literally the parameters for initializing a DRM GPU scheduler. We're in the Kernel API Manual, bestie, and this struct is giving setup-era main character energy π
β¨
β¨ SYNOPSIS β¨
struct drm_sched_init_args {
const struct drm_sched_backend_ops *ops;
struct workqueue_struct *submit_wq;
struct workqueue_struct *timeout_wq;
u32 num_rqs;
u32 credit_limit;
unsigned int hang_limit;
long timeout;
atomic_t *score;
const char *name;
struct device *dev;
};
π«Ά Members π«Ά
opsβ backend operations provided by the driver πsubmit_wqβ workqueue to use for submission. If it'sNULL, an ordered wq is allocated and used. slay π¦timeout_wqβ workqueue to use for timeout work. If it'sNULL, thesystem_wqis used. periodt πnum_rqsβ Number of run-queues. This may be at mostDRM_SCHED_PRIORITY_COUNT, as there's usually one run-queue per priority, but may be less πcredit_limitβ the number of credits this scheduler can hold from all jobs πhang_limitβ number of times to allow a job to hang before dropping it. This mechanism is DEPRECATED. Set it to0. fr fr, do not play with this one π
π¨ bestie warning:hang_limitis DEPRECATED. Set it to0. That's the vibe check. π
timeoutβ timeout value in jiffies for submitted jobs β³scoreβ score atomic shared with other schedulers. May beNULL. no cap π«Άnameβ name (typically the driver's name). Used for debugging πdevβ associated device. Used for debugging π§
π 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_rq(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_pending_job_iter(9)drm_sched_for_each_pending_job(9)
mwah π this lil page came from ./include/drm, dated October 2026, and it's literally all about struct drm_sched_init_args(9) β bye bestie π¦π
π¦ 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