dm_test_crtc...urce_invalid(9)
π dm_test_crtc_verify_crc_source_invalid(9) β the kernel API manual, bestie edition π
okay so real talk, this is a page from the Kernel API Manual, section 9 (that's the kernel dev section, iykyk), and the whole vibe is: we're checking that garbage CRC source strings get absolutely rejected. iconic behavior honestly. let's get into it β¨
πΈ NAME πΈ
dm_test_crtc_verify_crc_source_invalid β literally here to test the invalid CRC source verification. that's the whole job. she's focused, she's got one task, and she ate. π
β SYNOPSIS β
void dm_test_crtc_verify_crc_source_invalid (struct kunit *test );
like, that's the signature, no cap. returns nothing (void), takes one arg, and just does its little test thing. π¦
π ARGUMENTS π
testβ the KUnit test context. this is the main character of the function, the test framework's handbag that carries all the context around. slay.
π DESCRIPTION π
so what does she do? she verifies that invalid source strings are rejected β like, turned away at the door, not today β and crucially, this happens without changing the caller-provided values count. π
read that again bestie: the rejection is clean. the count the caller handed in stays exactly the way it was. no side effects, no sneaky mutation, no chaos. the invalid strings get told no and the values count doesn't get touched. periodt. π₯
π¦ SEE ALSO π¦
the kernel file living at:
./drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_crc_test.c
and the whole friend group of sibling tests β every single one, no skips, because they all matter:
dm_test_crtc_get_crc_sources(9)dm_test_crtc_verify_crc_source_valid(9)dm_test_crtc_configure_crc_source_no_stream(9)dm_test_crtc_configure_crc_source_dprx(9)dm_test_crtc_configure_crc_source_dprx_dither(9)dm_test_crtc_configure_crc_source_crtc(9)dm_test_crtc_configure_crc_source_crtc_dcn36_poly(9)dm_test_crtc_configure_crc_source_crtc_configure_fails(9)dm_test_crtc_configure_crc_source_none(9)dm_test_crtc_set_crc_source_invalid(9)dm_test_crtc_set_crc_source_none_no_stream(9)dm_test_crtc_set_crc_source_none_commit(9)dm_test_crtc_set_crc_source_dprx_no_connector(9)dm_test_crtc_handle_crc_irq_early_returns(9)dm_test_crtc_handle_crc_irq_disabled_source(9)dm_test_crtc_handle_crc_irq_skips_initial_frames(9)dm_test_crtc_handle_crc_irq_dprx_after_skip(9)dm_test_crtc_handle_crc_irq_get_crc_fails(9)dm_test_need_dp_aux(9)dm_test_crc_source_should_start_dprx(9)dm_test_crc_source_should_stop_dprx(9)
like, go read them, they're all giving "we're part of a bigger test suite" energy and honestly? obsessed. π
π«Ά cute lil sign-off π«Ά
this page comes from ./drivers/gpu/drm/amd/display/... and it's dated October 2026, filed under dm_test_crtc...urce_invalid(9) in section 9 of the kernel API manual. go forth and reject those invalid sources, bestie β cleanly, with the values count untouched. mwah πβ¨π
π¦ 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