1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>drm_mm_init_scan_with_range</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-memory-management.html#idp1119448692" title="DRM MM Range Allocator Function References"><link rel="prev" href="API-drm-mm-init-scan.html" title="drm_mm_init_scan"><link rel="next" href="API-drm-mm-scan-add-block.html" title="drm_mm_scan_add_block"></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_mm_init_scan_with_range</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-drm-mm-init-scan.html">Prev</a>&#160;</td><th width="60%" align="center">DRM MM Range Allocator Function References</th><td width="20%" align="right">&#160;<a accesskey="n" href="API-drm-mm-scan-add-block.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-drm-mm-init-scan-with-range"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>drm_mm_init_scan_with_range &#8212; 
2     initialize range-restricted lru scanning
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">void <b class="fsfunc">drm_mm_init_scan_with_range </b>(</code></td><td>struct drm_mm * <var class="pdparam">mm</var>, </td></tr><tr><td>&#160;</td><td>u64 <var class="pdparam">size</var>, </td></tr><tr><td>&#160;</td><td>unsigned <var class="pdparam">alignment</var>, </td></tr><tr><td>&#160;</td><td>unsigned long <var class="pdparam">color</var>, </td></tr><tr><td>&#160;</td><td>u64 <var class="pdparam">start</var>, </td></tr><tr><td>&#160;</td><td>u64 <var class="pdparam">end</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer">&#160;</div></div></div><div class="refsect1"><a name="idp1123083580"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>mm</code></em></span></dt><dd><p>
4     drm_mm to scan
5    </p></dd><dt><span class="term"><em class="parameter"><code>size</code></em></span></dt><dd><p>
6     size of the allocation
7    </p></dd><dt><span class="term"><em class="parameter"><code>alignment</code></em></span></dt><dd><p>
8     alignment of the allocation
9    </p></dd><dt><span class="term"><em class="parameter"><code>color</code></em></span></dt><dd><p>
10     opaque tag value to use for the allocation
11    </p></dd><dt><span class="term"><em class="parameter"><code>start</code></em></span></dt><dd><p>
12     start of the allowed range for the allocation
13    </p></dd><dt><span class="term"><em class="parameter"><code>end</code></em></span></dt><dd><p>
14     end of the allowed range for the allocation
15    </p></dd></dl></div></div><div class="refsect1"><a name="idp1123090148"></a><h2>Description</h2><p>
16   This simply sets up the scanning routines with the parameters for the desired
17   hole. Note that there's no need to specify allocation flags, since they only
18   change the place a node is allocated from within a suitable hole.
19</p></div><div class="refsect1"><a name="idp1123090964"></a><h2>Warning</h2><p>
20   As long as the scan list is non-empty, no other operations than
21   adding/removing nodes to/from the scan list are allowed.
22</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-mm-init-scan.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="drm-memory-management.html#idp1119448692">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="API-drm-mm-scan-add-block.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">drm_mm_init_scan</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_mm_scan_add_block</span></td></tr></table></div></body></html>
23