dm_test_veri..._alloc_plane(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME

Okay bestie, so <pink>dm_test_verify_lut3d_alloc_plane</pink> β€” this is a page straight out of the Kernel API Manual, section 9, and what it does is allocate a dm_plane_state for lut3d tests. That's it, that's the vibe. πŸŽ€


✨ SYNOPSIS

struct drm_plane_state * dm_test_verify_lut3d_alloc_plane (struct kunit
*test );

Literally just one function, one argument, no cap. πŸ¦‹


πŸŽ€ ARGUMENTS

  • test β€” the KUnit test context πŸ’– (you know the drill, it's the fixture everything hangs off of)

πŸ”₯ RETURN

It hands you back a drm_plane_state pointer β€” and the way that pointer works is it's embedded in a zeroed dm_plane_state. So like, freshly allocated and all cleaned out, main character energy. ✨

Heads up bestie: it's an embedded pointer inside a zeroed struct, so don't go freeing it like it's its own independent allocation. πŸ™ˆ

πŸ‘‘ SEE ALSO

The kernel file this lives in is:

./drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_color_test.c

And here's the whole friend group β€” every single one of these is a (9) page, no skipping, we love a complete list 🫢:


πŸ’– that's the whole page, bestie πŸ’– This one's sourced from ./drivers/gpu/drm/amd/display/... and stamped October 2026 β€” go forth and allocate responsibly, mwah πŸ’…βœ¨

πŸ“¦ where this page comes from