Name

drm_atomic_add_affected_connectors — add connectors for crtc

Synopsis

int drm_atomic_add_affected_connectors (struct drm_atomic_state * state,
 struct drm_crtc * crtc);
 

Arguments

state

atomic state

crtc

DRM crtc

Description

This function walks the current configuration and adds all connectors currently using crtc to the atomic configuration state. Note that this function must acquire the connection mutex. This can potentially cause unneeded seralization if the update is just for the planes on one crtc. Hence drivers and helpers should only call this when really needed (e.g. when a full modeset needs to happen due to some change).

Returns

0 on success or can fail with -EDEADLK or -ENOMEM. When the error is EDEADLK then the w/w mutex code has detected a deadlock and the entire atomic sequence must be restarted. All other errors are fatal.