drm_mock_sch..._duration_us(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_mock_sch..._duration_us(9)

okay so first things first, bestie: this is a page from the Kernel API Manual, and it's all about one lil' function that tells the mock scheduler how long a job should take. yes, we're in ./drivers/gpu/drm/scheduler/tests territory β€” test-land, not production-land β€” so breathe, you're safe πŸ’–


✨ NAME ✨

drm_mock_sched_job_set_duration_us β€” Set a job duration πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

void drm_mock_sched_job_set_duration_us (struct drm_mock_sched_job *job
, unsigned int duration_us );

🌸 ARGUMENTS 🌸

  • job β€” the job you're setting the duration for, like handing your bestie a little timer 🫢
  • duration_us β€” the duration, in micro seconds. yes, micro. tiny. baby units. ⏱️

πŸ’œ DESCRIPTION πŸ’œ

okay so here's the tea β˜•: jobs that have a duration set on them get automatically completed by the mock scheduler as the timeline progresses. no cap, it just happens for you.

BUT β€” and this is the plot twist 😭 β€” if a job without a set duration gets encountered in the timeline, then the auto-magic stops and you'll need to call drm_mock_sched_advance to bump the timeline forward yourself. so like, set the duration or be prepared to do the manual labour, iykyk πŸ’…

lowkey important: the automatic completion is conditional on nothing in the way being duration-less. one vibe-ruiner job and it's manual mode for ya πŸ”₯

🌈 SEE ALSO 🌈

Kernel file ./drivers/gpu/drm/scheduler/tests/sched_tests.h

like literally the whole mock scheduler friend group, go say hi πŸ‘‘βœ¨


and that's the whole page, bestie πŸ’– this iconic piece of documentation lives in ./drivers/gpu/drm/scheduler/tests, dated October 2026, and it's filed under drm_mock_sch..._duration_us(9). slay, go set some durations πŸŽ€πŸ’…

πŸ“¦ where this page comes from