XenevaOS
Loading...
Searching...
No Matches
Public Attributes | List of all members
drm_modeset_acquire_ctx Struct Reference

#include <drm_modeset_lock.h>

Collaboration diagram for drm_modeset_acquire_ctx:
Collaboration graph
[legend]

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
 

Detailed Description

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.

Member Data Documentation

◆ contended

struct drm_modeset_lock* drm_modeset_acquire_ctx::contended

◆ interruptible

bool drm_modeset_acquire_ctx::interruptible

◆ locked

struct list_head drm_modeset_acquire_ctx::locked

◆ stack_depot

depot_stack_handle_t drm_modeset_acquire_ctx::stack_depot

◆ trylock_only

bool drm_modeset_acquire_ctx::trylock_only

◆ ww_ctx

struct ww_acquire_ctx drm_modeset_acquire_ctx::ww_ctx

The documentation for this struct was generated from the following file: