|
XenevaOS
|
#include <drm_modeset_lock.h>

Public Attributes | |
| struct ww_acquire_ctx | ww_ctx |
| struct drm_modeset_lock * | contended |
| depot_stack_handle_t | stack_depot |
| struct list_head | locked |
| bool | trylock_only |
| bool | interruptible |
struct drm_modeset_acquire_ctx - locking context (see ww_acquire_ctx) @ww_ctx: base acquire ctx @contended: used internally for -EDEADLK handling @stack_depot: used internally for contention debugging @locked: list of held locks @trylock_only: trylock mode used in atomic contexts/panic notifiers @interruptible: whether interruptible locking should be used.
Each thread competing for a set of locks must use one acquire ctx. And if any lock fxn returns -EDEADLK, it must backoff and retry.
| struct drm_modeset_lock* drm_modeset_acquire_ctx::contended |
| bool drm_modeset_acquire_ctx::interruptible |
| struct list_head drm_modeset_acquire_ctx::locked |
| depot_stack_handle_t drm_modeset_acquire_ctx::stack_depot |
| bool drm_modeset_acquire_ctx::trylock_only |
| struct ww_acquire_ctx drm_modeset_acquire_ctx::ww_ctx |