dm_test_repl..._already_set(9)
π dm_test_replay_set_event_already_set β from the Kernel API Manual β¨
okay bestie, buckle up, because today's main character is a tiny little KUnit test and honestly? she's serving. this page comes to you straight out of the Kernel API Manual, so you already know it's the real deal π
πΈ NAME πΈ
dm_test_replay_set_event_already_set β and what does she do? she verifies there's a no-op when the event is already active. literally that's it. lowkey iconic for knowing when to do nothing π
β¨ SYNOPSIS β¨
void dm_test_replay_set_event_already_set (struct kunit *test );
that's the whole signature, no cap. takes one thing, returns nothing, slays quietly π¦
π«Ά ARGUMENTS π«Ά
testβ the KUnit test context. that's her emotional support struct. she needs it, you hand it over, everybody's happy π
π₯ DESCRIPTION π₯
so here's the vibe check: when the requested event is already in the desired state, the function should just return true β no fuss, no drama, no extra work. and β this is the important part, bestie β it should do that without calling mod_power_set_replay_event. like, why would you touch the power thing when everything's already exactly how you want it?? not her. she's above that. periodt π
basically it's the "already there, already cute, nothing to do" test. the way that it just says true and leaves β¨
π SEE ALSO π
the kernel file where all this magic lives:
./drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_replay_test.c
and her whole friend group, in the exact order they appear in the group chat π¬:
dm_test_replay_set_caps_already_supported(9)dm_test_replay_set_caps_non_embedded_signal(9)dm_test_replay_set_caps_disallowed_by_panel(9)dm_test_replay_set_caps_link_not_supported(9)dm_test_replay_set_caps_missing_dmub_srv(9)dm_test_replay_set_caps_success(9)dm_test_replay_link_setup_null_stream(9)dm_test_replay_link_setup_null_link(9)dm_test_replay_link_setup_null_vrr_params(9)dm_test_replay_link_setup_not_supported(9)dm_test_replay_link_setup_already_enabled(9)dm_test_replay_link_setup_success(9)dm_test_replay_set_event_null_stream(9)dm_test_replay_set_event_null_link(9)dm_test_replay_set_event_feature_disabled(9)dm_test_replay_set_event_missing_power_module(9)dm_test_replay_set_event_already_clear(9)
seventeen of them. a whole squad. iykyk π
ngl, this one's short and sweet β but don't sleep on it, because "returns true and calls nothing" is exactly the kind of behavior that breaks in the messiest way when someone forgets it π
πΈ okay that's the page!! brought to you by ./drivers/gpu/drm/amd/display/... dated October 2026, same energy as always β mwah, go read the source bestie, and remember: dm_test_repl..._already_set(9) said it first πβπ
π¦ 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