1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>i915_gem_shrink_all</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="ch04s03.html#idp1128510940" title="Buffer Object Memory Shrinking"><link rel="prev" href="API-i915-gem-shrink.html" title="i915_gem_shrink"><link rel="next" href="API-i915-gem-shrinker-init.html" title="i915_gem_shrinker_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">i915_gem_shrink_all</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-i915-gem-shrink.html">Prev</a>&#160;</td><th width="60%" align="center">Buffer Object Memory Shrinking</th><td width="20%" align="right">&#160;<a accesskey="n" href="API-i915-gem-shrinker-init.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-i915-gem-shrink-all"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>i915_gem_shrink_all &#8212; 
2     Shrink buffer object caches completely
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">unsigned long <b class="fsfunc">i915_gem_shrink_all </b>(</code></td><td>struct drm_i915_private * <var class="pdparam">dev_priv</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer">&#160;</div></div></div><div class="refsect1"><a name="idp1128529524"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>dev_priv</code></em></span></dt><dd><p>
4     i915 device
5    </p></dd></dl></div></div><div class="refsect1"><a name="idp1128531132"></a><h2>Description</h2><p>
6   This is a simple wraper around <code class="function">i915_gem_shrink</code> to aggressively shrink all
7   caches completely. It also first waits for and retires all outstanding
8   requests to also be able to release backing storage for active objects.
9   </p><p>
10
11   This should only be used in code to intentionally quiescent the gpu or as a
12   last-ditch effort when memory seems to have run out.
13</p></div><div class="refsect1"><a name="idp1128532580"></a><h2>Returns</h2><p>
14   The number of pages of backing storage actually released.
15</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-i915-gem-shrink.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="ch04s03.html#idp1128510940">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="API-i915-gem-shrinker-init.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">i915_gem_shrink</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">i915_gem_shrinker_init</span></td></tr></table></div></body></html>
16