alloc_test_ddc_link(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so, welcome to the Kernel API Manual page for alloc_test_ddc_link(9), bestie. This is the test-support helper that’s lowkey iconic: it wires up the fake DDC link vibe so the KUnit girlies can do their thing. πŸŽ€

πŸŽ€ NAME πŸŽ€

alloc_test_ddc_link β€” connector/link wired to the recording i2c + aux fakes. It’s giving test scaffolding main character energy, no cap. ✨

🌸 SYNOPSIS 🌸

struct dc_link * alloc_test_ddc_link (struct kunit *test );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • test β€” KUnit test context for managed allocation. This is the test bestie that keeps the allocation situation managed. 🫢

πŸ’œ DESCRIPTION πŸ’œ

okay so, what does it actually do? Builds an amdgpu_dm_connector with a fake i2c adapter and a fake DP aux, and points link->priv at the connector so dm_helpers_* find it. Then it returns the dc_link that the lp_* wrappers take as their opaque handle. Slay. πŸ’…

Bestie, this is the kind of helper that makes the fake stuff feel real enough for tests. Cute, iconic, necessary. 🧚

🌈 SEE ALSO 🌈

Here’s the entire squad, bestie β€” every single reference, no cap, fr fr. πŸ‘‘

πŸ“ Kernel file πŸ“

  • ./drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_hdcp_test.c

🫢 The whole squad 🫢


πŸ’– That’s the whole page, bestie! Source/version: ./drivers/gpu/drm/amd/display/... Β· date: October 2026 Β· title: alloc_test_ddc_link(9). Now go forth and slay those KUnit tests fr fr πŸ«Άβœ¨πŸŽ€
πŸ“¦ where this page comes from