drm_atomic_...or_connector(9)
π drm_atomic_set_crtc_for_connector β set CRTC for connector
okay so this is a page from the Kernel API Manual (yes, the Kernel API Manual, we're in that part of the docs bestie, the GPU driver section) and honestly? it's a little baddie with one job and she does it π
β¨ SYNOPSIS β¨
int drm_atomic_set_crtc_for_connector (struct drm_connector_state
*conn_state , struct drm_crtc *crtc );
like, yes, that's the whole signature, no cap π«Ά
π ARGUMENTS π
conn_stateβ the atomic state object for the connector. that's her little state era πcrtcβ the CRTC to use for the connector. the actual destination, the main character π
πΈ DESCRIPTION πΈ
so when you're changing the assigned CRTC for a connector, you can't just do it, babes, because you need to grab the lock and the state for the new CRTC as needed π like there are steps.
this function takes care of all those details π«Ά
the one thing she does not do? updating the pointer in the state object itself. nope, that part's on you, bestie. she handles the logistics, you handle the pointer, it's giving teamwork π
β RETURN β
0β success, slay, we ate π-EDEADLKβ uh oh. when the error isEDEADLKthat means the w/w mutex code has detected a deadlock, and the entire atomic sequence must be restarted π like, the whole thing, from the top, no skipping π-ENOMEMβ out of memory, tragic π
also: all other errors are fatal. like, genuinely, not in a cute way. periodt.
π¦ SEE ALSO π¦
the girlies in her orbit π«
- kernel file
./drivers/gpu/drm/drm_atomic_uapi.c overview(9)drm_atomic_set_mode_for_crtc(9)drm_atomic_set_mode_prop_for_crtc(9)drm_atomic_set_crtc_for_plane(9)drm_atomic_set_fb_for_plane(9)drm_atomic_set_colorop_for_plane(9)explicit fencing properties(9)
π the sign-off π
okay that's the whole page, ily, go set some CRTCs responsibly π
this little beauty comes from ./drivers/gpu/drm, and the page is dated October 2026, filed under drm_atomic_...or_connector(9) β yes the truncated title is literally part of the vibe, don't come for her π
π¦ 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