dm_test_wb_g...eturns_modes(9)
π dm_test_wb_get_modes_returns_modes(9) β from the Kernel API Manual, bestie
okay so picture this: it's a KUnit test page, it lives in the Kernel API Manual, and it's literally just here to make sure one (1) function does one (1) thing. short king. iconic behavior. let's get into it π«Ά
β¨ NAME β¨
dm_test_wb_get_modes_returns_modes β the vibe check that confirms at least one mode actually comes back. no cap, that's the whole job π
πΈ SYNOPSIS πΈ
void dm_test_wb_get_modes_returns_modes (struct kunit *test );
π ARGUMENTS π
testβ the KUnit test context, aka the little backpack this test carries its stuff in π
π¦ DESCRIPTION π¦
so here's the tea β β this test spins up a DRM mock connector (fake connector, real intentions) and uses it to check that amdgpu_dm_wb_connector_get_modes actually does its thing and populates that connector with at least one display mode.
that's it. that's the whole test. one mode minimum, zero modes = not slaying. β¨
fr fr, "at least one" is the bar here β the test isn't asking for a whole lineup, just proof that something comes back. lowkey the most reasonable test in the suite.
π SEE ALSO π
Kernel file π
./drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_wb_test.c
and the rest of the friend group, all showing up to the group chat π:
dm_test_wb_atomic_check_no_job(9)dm_test_wb_atomic_check_no_fb(9)dm_test_wb_atomic_check_valid(9)dm_test_wb_atomic_check_size_mismatch(9)dm_test_wb_atomic_check_width_mismatch(9)dm_test_wb_atomic_check_height_mismatch(9)dm_test_wb_atomic_check_invalid_format(9)dm_test_wb_get_modes_bounded_by_max(9)dm_test_wb_connector_init_success(9)dm_test_wb_prepare_job_no_fb(9)dm_test_wb_cleanup_job_no_fb(9)
π that's the page!! sourced from ./drivers/gpu/drm/amd/display/..., dated October 2026, and filed under dm_test_wb_g...eturns_modes(9) β mwah, go read the other tests, ily bye ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms