vc4_mock_atomic_del_output(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… vc4_mock_atomic_del_output β€” a whole page from the Kernel API Manual πŸŽ€

okay bestie, sit down, because today we're looking at vc4_mock_atomic_del_output β€” yes that's the whole name, yes it's a mouthful, no we're not shortening it, it's iconic and it deserves its full government name. This is the fourth page of the Kernel API Manual and honestly? she ate. πŸ¦‹


✨ NAME ✨

vc4_mock_atomic_del_output β€” literally just disables an output in a state. that's the whole vibe check. πŸ’…


🌸 SYNOPSIS 🌸

int vc4_mock_atomic_del_output (struct kunit *test , struct
       drm_atomic_commit *state , enum vc4_encoder_type type );

like yes, she returns an int, and yes, she takes three things. we'll get to those. 🫢


πŸ’– ARGUMENTS πŸ’–

  • test β€” the test context object. hi bestie, it's your kunit test, she's the main character here πŸ‘‘
  • state β€” the atomic state you want the output disabled in. this is the one getting the glow-down ✨
  • type β€” the type of the output encoder. enum vc4_encoder_type, no cap 🧚

🌈 DESCRIPTION 🌈

so what does she actually do? she adds an output CRTC and a connector to a state β€” and then disables them. both. added, then switched off. it's giving "invited to the party and immediately uninvited" energy 😭

that's it. that's the whole description. short, sweet, slay. πŸ’œ


⭐ RETURN ⭐

  • returns 0 on success πŸŽ‰
  • returns a negative error code on failure πŸ’€
  • > ⚠️ and listen carefully bestie: if that error is EDEADLK, the entire atomic sequence must be restarted. not a little restart. the whole sequence. periodt.
  • all other errors are fatal β€” like, no coming back from those πŸ™ˆ

πŸ¦‹ SEE ALSO πŸ¦‹

  • Kernel file ./drivers/gpu/drm/vc4/tests/vc4_mock_output.c β€” go read the source, iykyk πŸ“–
  • vc4_mock_atomic_add_output(9) β€” the add version, the sibling, the sister page πŸ’•

and that's the page! shoutout to the source over in ./drivers/gpu/drm/vc4/tests, dated October 2026, living under the title vc4_mock_atomic_del_output(9) in the Kernel API Manual β€” mwah, love that for her πŸ’‹πŸŒΈβœ¨

πŸ“¦ where this page comes from