drm_mock_sched_job_new(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_mock_sched_job_new(9) β€” Kernel API Manual, bestie edition

okay so real talk, this is a page straight out of the Kernel API Manual and it's all about drm_mock_sched_job_new β€” a little function that makes a brand-new mock scheduler job for you. it's giving "test helper that ate" ✨


✨ NAME ✨

drm_mock_sched_job_new β€” Create a new mock scheduler job πŸŽ€


🌸 SYNOPSIS 🌸

struct drm_mock_sched_job * drm_mock_sched_job_new (struct kunit *test ,
       struct drm_mock_sched_entity *entity );

like, that's the whole vibe. two args in, one shiny struct drm_mock_sched_job * out. no cap πŸ’–


πŸ¦‹ ARGUMENTS πŸ¦‹

  • test β€” the KUnit test that owns the job. yeah, the test is the main character here and it's holding the bag for the allocation πŸ‘‘
  • entity β€” the scheduler entity this job belongs to. every job needs its entity, iykyk 🫢

⭐ RETURN ⭐

you get back a new mock scheduler job, and its allocation is managed by the test β€” so the test is literally responsible for it. no loose memory just vibing out there, periodt πŸ”₯


🌈 SEE ALSO 🌈


bestie, if you're poking around the mock scheduler tests, this whole little squad above is your group chat. go say hi πŸ’œ

and that's the page!! sign-off time: it lives under ./drivers/gpu/drm/scheduler/tests, dated October 2026, and it's drm_mock_sched_job_new(9) all the way down. mwah πŸ’‹πŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from