vc4_mock_atomic_add_output(9)
π vc4_mock_atomic_add_output(9) β a Kernel API Manual moment β¨
okay so bestie, welcome to the glow-up era of the kernel API manual π this one lives in the Kernel API Manual family, and it's literally about turning an output on in an atomic state. no cap.
πΈ NAME πΈ
vc4_mock_atomic_add_output β enables an output in a state</p> π yes queen, that's the whole bit.
β¨ SYNOPSIS β¨
int vc4_mock_atomic_add_output (struct kunit *test , struct drm_atomic_commit *state , enum vc4_encoder_type type );
π«Ά ARGUMENTS π«Ά
testβ the test context object π§ͺ like, the lil world this whole call is happening inside.stateβ the atomic state you wanna enable the output in. this is the state bestie β¨typeβ the type of the output encoder π tell it what kind of encoder you're working with.
π« DESCRIPTION π«
so what it actually does: it adds an output CRTC and connector to a state, and then enables them π₯ both of them. not one, both. we love a two-for-one slay.
CRTC + connector = added and enabled, periodt.
π RETURN π
0β success, we ate π- a negative error code β failure, and honestly π
β οΈ okay this part is important, no skipping: if the error is EDEADLK, the entire atomic sequence must be restarted. like, the whole thing. from the top. all other errors are fatal β not a vibe check you can ignore, fr fr.
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/vc4/tests/vc4_mock_output.cπ¦ go read the source, iykyk vc4_mock_atomic_del_output(9)β the opposite bestie, the one that removes instead of adds π§ the duality of woman
mwah π that's the page! it's giving kernel, it's giving mock, it's giving atomic output enabling energy. this lil slice of documentation comes to you from ./drivers/gpu/drm/vc4/tests, dated October 2026, and it's filed under vc4_mock_atomic_add_output(9) β stan the vc4 tests directory for clear skin βπ
π¦ 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