Name

__drm_modeset_lock_all — internal helper to grab all modeset locks

Synopsis

int __drm_modeset_lock_all (struct drm_device * dev,
 bool trylock);
 

Arguments

dev

DRM device

trylock

trylock mode for atomic contexts

Description

This is a special version of drm_modeset_lock_all which can also be used in atomic contexts. Then trylock must be set to true.

Returns

0 on success or negative error code on failure.