drm_mock_sched_job_new(9)
π 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β theKUnittest 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 π
- 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_new(9)drm_mock_sched_fini(9)drm_mock_sched_advance(9)
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
- 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