drm_atomic_...tc_for_plane(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, this is the Kernel API Manual page for drm_atomic_set_crtc_for_plane - set CRTC for plane. periodt πŸ’…


✨ SYNOPSIS ✨

the whole vibe, signature-wise:

int drm_atomic_set_crtc_for_plane (struct drm_plane_state *plane_state ,
struct drm_crtc *crtc );

πŸŽ€ ARGUMENTS πŸŽ€

  • plane_state β€” the plane whose incoming state to update πŸ¦‹
  • crtc β€” CRTC to use for the plane ✨

πŸ¦‹ DESCRIPTION πŸ¦‹

so changing the assigned CRTC for a plane means we have to grab the lock and state for the new CRTC, as needed. this function takes care of all those little details besides updating the pointer in the state object itself β€” that part is not handled here, iykyk 🫢


πŸ”₯ RETURN πŸ”₯

0 on success, or it can fail with -EDEADLK or -ENOMEM. when the error is EDEADLK, the w/w mutex code has detected a deadlock and the entire atomic sequence must be restarted. all other errors are fatal, no cap πŸ˜­πŸ’€


🌈 SEE ALSO 🌈

πŸŽ€ sign-off: from ./drivers/gpu/drm, dated October 2026, page drm_atomic_...tc_for_plane(9) β€” go slay those atomic updates, bestie πŸ’…βœ¨
πŸ“¦ where this page comes from