1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>drm_atomic_commit</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-mode-setting.html#idp1123612996" title="Atomic Mode Setting Function Reference"><link rel="prev" href="API-drm-atomic-check-only.html" title="drm_atomic_check_only"><link rel="next" href="API-drm-atomic-async-commit.html" title="drm_atomic_async_commit"></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">drm_atomic_commit</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-drm-atomic-check-only.html">Prev</a>&#160;</td><th width="60%" align="center">Atomic Mode Setting Function Reference</th><td width="20%" align="right">&#160;<a accesskey="n" href="API-drm-atomic-async-commit.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-drm-atomic-commit"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>drm_atomic_commit &#8212; 
2     commit configuration atomically
3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">drm_atomic_commit </b>(</code></td><td>struct drm_atomic_state * <var class="pdparam">state</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer">&#160;</div></div></div><div class="refsect1"><a name="idp1123771508"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>state</code></em></span></dt><dd><p>
4     atomic configuration to check
5    </p></dd></dl></div></div><div class="refsect1"><a name="idp1123773132"></a><h2>Description</h2><p>
6   Note that this function can return -EDEADLK if the driver needed to acquire
7   more locks but encountered a deadlock. The caller must then do the usual w/w
8   backoff dance and restart. All other errors are fatal.
9   </p><p>
10
11   Also note that on successful execution ownership of <em class="parameter"><code>state</code></em> is transferred
12   from the caller of this function to the function itself. The caller must not
13   free or in any other way access <em class="parameter"><code>state</code></em>. If the function fails then the caller
14   must clean up <em class="parameter"><code>state</code></em> itself.
15</p></div><div class="refsect1"><a name="idp1123775396"></a><h2>Returns</h2><p>
16   0 on success, negative error code on failure.
17</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-atomic-check-only.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="drm-mode-setting.html#idp1123612996">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="API-drm-atomic-async-commit.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">drm_atomic_check_only</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_atomic_async_commit</span></td></tr></table></div></body></html>
18