drm_modeset_lock_all_ctx — take all modeset locks
int drm_modeset_lock_all_ctx ( | struct drm_device * dev, |
struct drm_modeset_acquire_ctx * ctx); |
This function takes all modeset locks, suitable where a more fine-grained scheme isn't (yet) implemented.
Unlike drm_modeset_lock_all, it doesn't take the dev->mode_config.mutex
since that lock isn't required for modeset state changes. Callers which
need to grab that lock too need to do so outside of the acquire context
ctx.
Locks acquired with this function should be released by calling the
drm_modeset_drop_locks function on ctx.