dm_test_que...l_driver_ctx(9)
π NAME π
So bestie, gather round, because this one is dm_test_query_brightness_caps_null_driver_ctx β like, yes, that is genuinely the whole name, no I'm not kidding β and it's the KUnit test that checks what happens when you query brightness caps with a null driver ctx. Sponsor of the "what if the thing is NULL" cinematic universe. We're in the Kernel API Manual, babe, buckle up. π
β¨ SYNOPSIS β¨
void dm_test_query_brightness_caps_null_driver_ctx (struct kunit *test
);
Yes it's one function, yes it takes basically nothing, yes it returns void. Iconic behaviour honestly. π¦
πΈ ARGUMENTS πΈ
testβ the KUnit test context, aka the little backpack of test state that KUnit hands you so the test can, y'know, be a test. πβ¨
π SEE ALSO π
The whole friend group, in order, no cap β this one is literally part of a set:
- Kernel file
./drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_services_test.cπ dm_test_get_elapse_time_zero_delta(9)dm_test_get_elapse_time_positive_delta(9)dm_test_get_elapse_time_large_delta(9)dm_test_get_elapse_time_wraparound(9)dm_test_perf_trace_timestamp_basic(9)dm_test_trace_smu_enter_null_ctx(9)dm_test_trace_smu_enter_with_params(9)dm_test_trace_smu_exit_success_null_ctx(9)dm_test_trace_smu_exit_failure_null_ctx(9)dm_test_trace_smu_exit_with_response(9)dm_test_query_brightness_caps_null_ctx(9)dm_test_query_brightness_caps_null_caps(9)dm_test_query_brightness_caps_lcd2_null_ctx(9)dm_test_query_brightness_caps_lcd1_success(9)dm_test_query_brightness_caps_non_lcd1_uses_second_slot(9)
Like, the null-check squad really said "we will test every single combination" and honestly? Respect. π«Ά
ngl the whole energy here is "make sure the driver doesn't explode when someone hands it a NULL" and that is very much a main character move. π
okay that's the whole page bestie β this was pulled from ./drivers/gpu/drm/amd/display/..., it's from the Kernel API Manual, and it's dated October 2026. Slay, go read the source file, and hydrate. πβ¨π§
π¦ 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