drm_mock_sched_entity_new(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_mock_sched_entity_new

okay so bestie, this is a page from the Kernel API Manual for drm_mock_sched_entity_new β€” yes it's a mouthful, yes we're gonna get through it together 🫢


✨ NAME ✨

drm_mock_sched_entity_new β€” literally just creates a new mock scheduler entity. that's the whole gig. no cap πŸŽ€


🌸 SYNOPSIS 🌸

struct drm_mock_sched_entity * drm_mock_sched_entity_new (struct kunit
*test , enum drm_sched_priority priority , struct drm_mock_scheduler
*sched );

like, it hands you back a pointer to a struct drm_mock_sched_entity * and takes three things. we'll go through them one by one, don't worry πŸ’–


πŸ¦‹ ARGUMENTS πŸ¦‹

  • test β€” the KUnit test that owns the entity. yes, it's the main character here, the entity belongs to it πŸ‘‘
  • priority β€” the scheduling priority. an enum drm_sched_priority, so pick your vibe ⭐
  • sched β€” the mock scheduler on which the entity can be scheduled. think of it as the venue where the entity gets to perform 🌈

πŸ’« RETURN πŸ’«

a brand new mock scheduler entity, with its allocation managed by the test. so the test handles the cleanup β€” the entity doesn't just wander off on its own, it's got a whole management situation going on πŸ’…


πŸŽ€ SEE ALSO πŸŽ€


fr fr, those SEE ALSO entries are your besties too β€” the _free one especially, since your test is managing that allocation. don't leave it hanging 😭

okay that's the whole page! source and version check: this one's from ./drivers/gpu/drm/scheduler/tests, dated October 2026, and it's part of the Kernel API Manual for drm_mock_sched_entity_new(9). slay, you're done here πŸ§šπŸ’œ

πŸ“¦ where this page comes from