for_each_ne...tor_in_state(9)
β¨ for_each_new_connector_in_state(9) β¨
okay bestie, welcome to the Kernel API Manual side of the group chat β this is the page for for_each_new_connector_in_state. π
πΈ SYNOPSIS πΈ
for_each_new_connector_in_state (__state , connector , new_connector_state , __i );
π ARGUMENTS π
__stateβ astruct drm_atomic_commitpointer. main-character pointer energy, fr.connectorβ astruct drm_connectoriteration cursor. it's giving βwhere we at in the connector listβ vibes. π¦new_connector_stateβ astruct drm_connector_stateiteration cursor for the new state. yes bestie, the new-state cursor π .__iβ anintiteration cursor, for macro-internal use. lowkey just the macroβs own little counter, donβt touch unless youβre the macro. π
π¦ DESCRIPTION π¦
okay so this iterates over all connectors in an atomic update, tracking only the new state. literally all the connectors, but only peeking at the new-state side of the situation. β¨
itβs useful in enable functions, where we need the new state the hardware should be in when the atomic commit operation has completed. no cap β thatβs the exact vibe: new state, post-commit, hardware goals. π₯
π SEE ALSO π
the kernel file is ./include/drm/drm_atomic.h, and the related-API friend group is:
- Kernel file
./include/drm/drm_atomic.h struct drm_crtc_commit(9)struct drm_private_state_funcs(9)struct drm_private_obj(9)drm_for_each_privobj(9)struct drm_private_state(9)struct drm_atomic_commit(9)drm_crtc_commit_get(9)drm_crtc_commit_put(9)drm_atomic_commit_get(9)drm_atomic_commit_put(9)drm_atomic_get_old_crtc_state(9)drm_atomic_get_new_crtc_state(9)drm_atomic_get_old_plane_state(9)drm_atomic_get_new_plane_state(9)drm_atomic_get_old_connector_state(9)drm_atomic_get_new_connector_state(9)__drm_atomic_get_current_plane_state(9)for_each_oldnew_connector_in_state(9)for_each_old_connector_in_state(9)for_each_oldnew_crtc_in_state(9)for_each_old_crtc_in_state(9)for_each_new_crtc_in_state(9)for_each_oldnew_colorop_in_state(9)for_each_new_colorop_in_state(9)for_each_oldnew_plane_in_state(9)for_each_oldnew_plane_in_state_reverse(9)for_each_new_plane_in_state_reverse(9)for_each_old_plane_in_state(9)for_each_new_plane_in_state(9)for_each_oldnew_private_obj_in_state(9)for_each_old_private_obj_in_state(9)for_each_new_private_obj_in_state(9)drm_atomic_crtc_needs_modeset(9)drm_atomic_crtc_effectively_active(9)struct drm_bus_cfg(9)struct drm_bridge_state(9)
mwah π β source/version: ./include/drm; date: October 2026; and this is the for_each_ne...tor_in_state(9) page. periodt. π«Ά
π¦ 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