alloc_test_connector(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

alloc_test_connector(9)

okay so welcome to the Kernel API Manual, section 9, bestie β€” today’s main character is alloc_test_connector(9), and she is literally the minimal amdgpu_dm_connector for display tests. πŸ’–βœ¨

πŸ’– NAME πŸ’–

alloc_test_connector β€” minimal amdgpu_dm_connector for display tests. πŸŽ€

✨ SYNOPSIS ✨

       struct amdgpu_dm_connector * alloc_test_connector (struct kunit *test ,
       unsigned int index );

you call it like that, no cap. 🫢

πŸŽ€ ARGUMENTS πŸŽ€

  • test β€” the KUnit test context used for managed allocation 🧚
  • index β€” the drm connector index to assign πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so this function allocates an amdgpu_dm_connector with an initialised connector refcount (so drm_connector_get is valid) and a dc_link/dc pair. The connector’s free_cb is left NULL, so drm_connector_put is a safe no-op that never releases the object. periodt. πŸ’€

vibe check πŸ‘‘: free_cb being NULL is the whole reason drm_connector_put stays a safe no-op and never releases the object β€” iconic, honestly. 🫢

πŸ’… SEE ALSO πŸ’…

Kernel file ./drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_hdcp_test.c

and here’s the whole girl gang of related refs β€” every single one, bestie πŸ’–:


mwah πŸ’‹ that’s the whole page, bestie. source/version: ./drivers/gpu/drm/amd/display/...; date: October 2026; signing off as alloc_test_connector(9) 🫢🌈

πŸ“¦ where this page comes from