dm_test_pla...opies_fields(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dm_test_plane_duplicate_state_copies_fields(9) β€” a Kernel API Manual moment

okay so bestie, welcome to the Kernel API Manual, and today's main character is dm_test_plane_duplicate_state_copies_fields(9). it's giving "tiny test function, huge friend group" because the SEE ALSO list is literally a whole squad 🫢


✨ NAME ✨

dm_test_plane_duplicate_state_copies_fields β€” verify state duplication, no cap πŸ’…


🌸 SYNOPSIS 🌸

void dm_test_plane_duplicate_state_copies_fields (struct kunit *test );

πŸŽ€ ARGUMENTS πŸŽ€

  • test β€” the KUnit test context. that's it. that's the whole argument. she's low maintenance πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the vibe: this test verifies that amdgpu_dm_plane_drm_plane_duplicate_state allocates a new state and copies over the transfer-function and HDR-multiplier fields from the current plane state β€” but only when there's no DC state or color blob attached. literally just checking that the duplication actually duplicates the right stuff πŸ™ˆβœ¨

like, no DC state? no color blob? cool, the fields should still ride along. and this test makes sure they do. iconique behavior honestly.


πŸ”₯ SEE ALSO πŸ”₯

the friend group is massive, so buckle up bestie. kernel file first:

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

and then the whole extended fam, all on (9):

like… name a more supportive cast, i'll wait πŸ’€πŸ’–


okay that's the whole page bestie, go forth and duplicate state responsibly 🌈✨

this cutie came out of ./drivers/gpu/drm/amd/display/... in October 2026, live and direct from the Kernel API Manual. bye diva, see u at the next test run πŸ’…πŸŽ€πŸ¦‹
πŸ“¦ where this page comes from