1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>bitmap_find_next_zero_area_off</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="The Linux Kernel API"><link rel="up" href="kernel-lib.html#idp1123213284" title="Bitmap Operations"><link rel="prev" href="API---bitmap-shift-left.html" title="__bitmap_shift_left"><link rel="next" href="API---bitmap-parse.html" title="__bitmap_parse"></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">bitmap_find_next_zero_area_off</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API---bitmap-shift-left.html">Prev</a> </td><th width="60%" align="center">Bitmap Operations</th><td width="20%" align="right"> <a accesskey="n" href="API---bitmap-parse.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-bitmap-find-next-zero-area-off"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>bitmap_find_next_zero_area_off — 2 find a contiguous aligned zero area 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">bitmap_find_next_zero_area_off </b>(</code></td><td>unsigned long * <var class="pdparam">map</var>, </td></tr><tr><td> </td><td>unsigned long <var class="pdparam">size</var>, </td></tr><tr><td> </td><td>unsigned long <var class="pdparam">start</var>, </td></tr><tr><td> </td><td>unsigned int <var class="pdparam">nr</var>, </td></tr><tr><td> </td><td>unsigned long <var class="pdparam">align_mask</var>, </td></tr><tr><td> </td><td>unsigned long <var class="pdparam">align_offset</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1123243060"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>map</code></em></span></dt><dd><p> 4 The address to base the search on 5 </p></dd><dt><span class="term"><em class="parameter"><code>size</code></em></span></dt><dd><p> 6 The bitmap size in bits 7 </p></dd><dt><span class="term"><em class="parameter"><code>start</code></em></span></dt><dd><p> 8 The bitnumber to start searching at 9 </p></dd><dt><span class="term"><em class="parameter"><code>nr</code></em></span></dt><dd><p> 10 The number of zeroed bits we're looking for 11 </p></dd><dt><span class="term"><em class="parameter"><code>align_mask</code></em></span></dt><dd><p> 12 Alignment mask for zero area 13 </p></dd><dt><span class="term"><em class="parameter"><code>align_offset</code></em></span></dt><dd><p> 14 Alignment offset for zero area. 15 </p></dd></dl></div></div><div class="refsect1"><a name="idp1123249844"></a><h2>Description</h2><p> 16 The <em class="parameter"><code>align_mask</code></em> should be one less than a power of 2; the effect is that 17 the bit offset of all zero areas this function finds plus <em class="parameter"><code>align_offset</code></em> 18 is multiple of that power of 2. 19</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API---bitmap-shift-left.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="kernel-lib.html#idp1123213284">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API---bitmap-parse.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">__bitmap_shift_left</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">__bitmap_parse</span></td></tr></table></div></body></html> 20