1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>struct drm_modeset_acquire_ctx</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux DRM Developer's Guide"><link rel="up" href="drm-kms-init.html#idp1124843020" title="KMS Locking"><link rel="prev" href="API-drm-encoder-crtc-ok.html" title="drm_encoder_crtc_ok"><link rel="next" href="API-drm-modeset-lock-init.html" title="drm_modeset_lock_init"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">struct drm_modeset_acquire_ctx</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-drm-encoder-crtc-ok.html">Prev</a>&#160;</td><th width="60%" align="center">KMS Locking</th><td width="20%" align="right">&#160;<a accesskey="n" href="API-drm-modeset-lock-init.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-struct-drm-modeset-acquire-ctx"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct drm_modeset_acquire_ctx &#8212; 
2  locking context (see ww_acquire_ctx)
3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting">
4struct drm_modeset_acquire_ctx {
5  struct ww_acquire_ctx ww_ctx;
6  struct drm_modeset_lock * contended;
7  struct list_head locked;
8  bool trylock_only;
9};  </pre></div><div class="refsect1"><a name="idp1124850372"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">ww_ctx</span></dt><dd><p>
10base acquire ctx
11      </p></dd><dt><span class="term">contended</span></dt><dd><p>
12used internally for -EDEADLK handling
13      </p></dd><dt><span class="term">locked</span></dt><dd><p>
14list of held locks
15      </p></dd><dt><span class="term">trylock_only</span></dt><dd><p>
16trylock mode used in atomic contexts/panic notifiers
17      </p></dd></dl></div></div><div class="refsect1"><a name="idp1124853788"></a><h2>Description</h2><p>
18   Each thread competing for a set of locks must use one acquire
19   ctx.  And if any lock fxn returns -EDEADLK, it must backoff and
20   retry.
21</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-drm-encoder-crtc-ok.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="drm-kms-init.html#idp1124843020">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="API-drm-modeset-lock-init.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">drm_encoder_crtc_ok</span>&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;<span class="phrase">drm_modeset_lock_init</span></td></tr></table></div></body></html>
22