1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>drm_mm_init_scan</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-replace-node.html" title="drm_mm_replace_node"><link rel="next" href="API-drm-mm-init-scan-with-range.html" title="drm_mm_init_scan_with_range"></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</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-drm-mm-replace-node.html">Prev</a> </td><th width="60%" align="center">DRM MM Range Allocator Function References</th><td width="20%" align="right"> <a accesskey="n" href="API-drm-mm-init-scan-with-range.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-drm-mm-init-scan"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>drm_mm_init_scan — 2 initialize 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 </b>(</code></td><td>struct drm_mm * <var class="pdparam">mm</var>, </td></tr><tr><td> </td><td>u64 <var class="pdparam">size</var>, </td></tr><tr><td> </td><td>unsigned <var class="pdparam">alignment</var>, </td></tr><tr><td> </td><td>unsigned long <var class="pdparam">color</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1123070892"></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></dl></div></div><div class="refsect1"><a name="idp1123075428"></a><h2>Description</h2><p> 12 This simply sets up the scanning routines with the parameters for the desired 13 hole. Note that there's no need to specify allocation flags, since they only 14 change the place a node is allocated from within a suitable hole. 15</p></div><div class="refsect1"><a name="idp1123076244"></a><h2>Warning</h2><p> 16 As long as the scan list is non-empty, no other operations than 17 adding/removing nodes to/from the scan list are allowed. 18</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-replace-node.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="drm-memory-management.html#idp1119448692">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-drm-mm-init-scan-with-range.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">drm_mm_replace_node</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">drm_mm_init_scan_with_range</span></td></tr></table></div></body></html> 19