drm_atomic_g...nector_state(9)
π drm_atomic_g...nector_state(9) β like, the Kernel API Manual bestie β¨
okay so real talk, this one lives in the Kernel API Manual and its whole name got squished by the terminal into drm_atomic_g...nector_state(9) β tragic, I know, but the vibe is immaculate. Let's get into it π
πΈ NAME πΈ
drm_atomic_get_connector_state β get connector state. literally that's the whole thing, short and slay π
β¨ SYNOPSIS β¨
struct drm_connector_state * drm_atomic_get_connector_state (struct
drm_atomic_commit *state , struct drm_connector *connector );
look at her go ππ«Ά
π¦ ARGUMENTS π¦
- state β the global atomic state object. yes bestie, the whole big picture π
- connector β the connector you want the state object for. this is your girl π
π DESCRIPTION π
So this function returns the connector state for the given connector, and it'll allocate it if needed β no cap, it just handles that for you π«Ά It will also grab the relevant connector lock to make sure that the state is consistent. iconic behaviour, honestly, protecting us from our own chaos π β¨
π RETURN π
You get either the allocated state, or the error code encoded into the pointer. Yes β into the pointer. iykyk π
β οΈ okay this part matters, listen up: when the error is EDEADLK, that means the w/w mutex code has detected a deadlock and the entire atomic sequence must be restarted. like, the WHOLE thing. start over. π
All other errors are fatal. like, actually fatal. no reshoots π
π₯ SEE ALSO π₯
- Kernel file
./drivers/gpu/drm/drm_atomic.cstate lifetime(9) drm_crtc_commit_wait(9)drm_atomic_commit_default_release(9)drm_atomic_commit_init(9)drm_atomic_commit_alloc(9)drm_atomic_commit_default_clear(9)drm_atomic_commit_clear(9)__drm_atomic_commit_free(9)drm_atomic_get_crtc_state(9)drm_atomic_get_plane_state(9)drm_atomic_get_colorop_state(9)drm_atomic_get_old_colorop_state(9)drm_atomic_get_new_colorop_state(9)drm_atomic_plane_check(9)- handling driver private state(9)
drm_atomic_private_obj_init(9)drm_atomic_private_obj_fini(9)drm_atomic_get_private_obj_state(9)drm_atomic_get_old_private_obj_state(9)drm_atomic_get_new_private_obj_state(9)drm_atomic_get_old_connector_for_encoder(9)drm_atomic_get_new_connector_for_encoder(9)drm_atomic_get_connector_for_encoder(9)drm_atomic_get_old_crtc_for_encoder(9)drm_atomic_get_new_crtc_for_encoder(9)drm_atomic_get_bridge_state(9)drm_atomic_get_old_bridge_state(9)drm_atomic_get_new_bridge_state(9)drm_atomic_add_encoder_bridges(9)drm_atomic_add_affected_connectors(9)drm_atomic_add_affected_planes(9)drm_atomic_add_affected_colorops(9)drm_atomic_check_only(9)drm_atomic_commit(9)drm_atomic_nonblocking_commit(9)drm_atomic_print_new_state(9)drm_state_dump(9)
that's a whole friend group right there, we love a linked list of besties ππ
and that's the whole page, bestie π§β¨ this one's filed under ./drivers/gpu/drm, dated October 2026, and it goes by drm_atomic_g...nector_state(9) β mwah, go read some more manpages, ily π«Άπ
π¦ 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