drm_mock_sched_advance(9)
π drm_mock_sched_advance(9)
okay so bestie, this is a page straight out of the Kernel API Manual (the drm_mock_sched_advance(9) one, yes bestie we're being official today β¨), and honestly it's kind of a slay.
πΈ NAME πΈ
drm_mock_sched_advance β bestie, it Advances the mock scheduler timeline. that's the whole vibe. no cap. π
β¨ SYNOPSIS β¨
unsigned int drm_mock_sched_advance (struct drm_mock_scheduler *sched ,
unsigned int num );
like, you hand it a scheduler and a number and it just goes. iconic behaviour tbh π
π¦ ARGUMENTS π¦
schedβ the Scheduler timeline to advance. this is the main character of the whole operation πnumβ By how many jobs to advance. how far forward we're skipping, literally π§
π DESCRIPTION π
so here's the tea: Advancing the scheduler timeline by a number of seqnos will trigger signalling of the hardware fences and unlinking the jobs from the internal scheduler tracking.
read that again. seqnos go up β hardware fences get signalled β jobs get unlinked from the internal scheduler tracking. all in one lil advance. ate and left no crumbs π₯
and why would you want that? because this can be used from test cases which want complete control of the simulated job execution timing. complete control. the dream, fr fr.
for example (and this is the part that lives in my head rent free π): submitting one job with no set duration would never complete it before test cases advances the timeline by one.
β οΈ bestie, clock that: a job with no set duration just sits there until the test case moves the timeline by one. it does not complete itself. it has zero initiative. π so if your test is just staring at a job like "any day nowβ¦" β nope, you gotta advance the timeline yourself. you're the one driving. π«Ά
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/scheduler/tests/mock_scheduler.c drm_mock_sched_entity_new(9)drm_mock_sched_entity_free(9)drm_mock_sched_job_new(9)drm_mock_sched_new(9)drm_mock_sched_fini(9)
the whole mock scheduler friend group, honestly β collect them all π
and that's a wrap, bestie π this page lives in ./drivers/gpu/drm/scheduler/tests and it's dated October 2026 β yes, the future π mwah, go advance some timelines β¨π¦πΈ
π¦ 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