drm_modeset_lock_all_ctx(9) 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.

AUTHORS

Jesse Barnes <[email protected]>
Intel Corporation,         
        

Initial version

Laurent Pinchart <[email protected]>
Ideas on board SPRL,         
        

Driver internals

Daniel Vetter <[email protected]>
Intel Corporation,         
        

Contributions all over the place

Lukas Wunner <[email protected]>

vga_switcheroo documentation

COPYRIGHT