drm_modeset_lock_all_ctx
Prev | KMS Locking | Next

## Name

drm_modeset_lock_all_ctx — take all modeset locks

## Synopsis

`int drm_modeset_lock_all_ctx (` | struct drm_device * dev,
| struct drm_modeset_acquire_ctx * ctx`)`;

## Arguments

`dev`

  DRM device

`ctx`

  lock acquisition context

## Description

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`.

## Returns

0 on success or a negative error-code on failure.

Prev | Up | Next
drm_modeset_unlock | Home | Mode Setting Helper Functions