dm_test_ver...d_alloc_adev(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dm_test_verify_lut3d_alloc_adev(9) πŸ’…

okay so bestie, you've found yourself in the Kernel API Manual, section 9, and this page is about dm_test_verify_lut3d_alloc_adev β€” that's the long one, yes, say it three times fast, i dare you. it lives in the AMD display test world and it's literally here to hand you an amdgpu_device with a DC attached and a 3D LUT cap of your choosing. iconic behavior tbh πŸŽ€


✨ NAME ✨

dm_test_verify_lut3d_alloc_adev β€” Allocate adev with a DC and given 3D LUT cap πŸ¦‹

like, the whole job. allocating an adev, giving it a DC, and letting you pick the 3D LUT cap. periodt.


🌸 SYNOPSIS 🌸

struct amdgpu_device * dm_test_verify_lut3d_alloc_adev (struct kunit
*test , bool has_3dlut );

look at that signature. chef's kiss. πŸ”₯


πŸ’– ARGUMENTS πŸ’–

  • test β€” the KUnit test context, aka the group chat where all of this is happening πŸ’¬
  • has_3dlut β€” the value that gets programmed into caps.color.dpp.hw_3d_lut. so like, you decide whether the 3D LUT is a yes or a no, and it gets written right there 🫢

πŸ‘‘ RETURN πŸ‘‘

it returns an amdgpu_device with adev->dm.dc allocated. that's it, that's the gift. no cap. ✨


🌈 SEE ALSO 🌈

the whole Kernel file lives right here, bestie:

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

and now the guest list β€” every single one of these icons, no skipping, i checked twice πŸ’…:


and that's the whole page, bestie. source is ./drivers/gpu/drm/amd/display/..., dated October 2026 β€” so go forth, allocate that adev, and slay πŸ’œπŸ§šβ€β™€οΈβ­

πŸ“¦ where this page comes from