1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>Chapter 3. Basic Kernel Library Functions</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="index.html" title="The Linux Kernel API"><link rel="prev" href="API-fls64.html" title="fls64"><link rel="next" href="API---bitmap-shift-right.html" title="__bitmap_shift_right"></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">Chapter 3. Basic Kernel Library Functions</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-fls64.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="API---bitmap-shift-right.html">Next</a></td></tr></table><hr></div><div class="chapter"><div class="titlepage"><div><div><h1 class="title"><a name="kernel-lib"></a>Chapter 3. Basic Kernel Library Functions</h1></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl class="toc"><dt><span class="sect1"><a href="kernel-lib.html#idp1123213284">Bitmap Operations</a></span></dt><dt><span class="sect1"><a href="ch03s02.html">Command-line Parsing</a></span></dt><dt><span class="sect1"><a href="crc.html">CRC Functions</a></span></dt><dt><span class="sect1"><a href="idr.html">idr/ida Functions</a></span></dt></dl></div><p> 2 The Linux kernel provides more basic utility functions. 3 </p><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="idp1123213284"></a>Bitmap Operations</h2></div></div></div><div class="toc"><dl class="toc"><dt><span class="refentrytitle"><a href="API---bitmap-shift-right.html"><span class="phrase">__bitmap_shift_right</span></a></span><span class="refpurpose"> — 4 logical right shift of the bits in a bitmap 5 </span></dt><dt><span class="refentrytitle"><a href="API---bitmap-shift-left.html"><span class="phrase">__bitmap_shift_left</span></a></span><span class="refpurpose"> — 6 logical left shift of the bits in a bitmap 7 </span></dt><dt><span class="refentrytitle"><a href="API-bitmap-find-next-zero-area-off.html"><span class="phrase">bitmap_find_next_zero_area_off</span></a></span><span class="refpurpose"> — 8 find a contiguous aligned zero area 9 </span></dt><dt><span class="refentrytitle"><a href="API---bitmap-parse.html"><span class="phrase">__bitmap_parse</span></a></span><span class="refpurpose"> — 10 convert an ASCII hex string into a bitmap. 11 </span></dt><dt><span class="refentrytitle"><a href="API-bitmap-parse-user.html"><span class="phrase">bitmap_parse_user</span></a></span><span class="refpurpose"> — 12 convert an ASCII hex string in a user buffer into a bitmap 13 </span></dt><dt><span class="refentrytitle"><a href="API-bitmap-print-to-pagebuf.html"><span class="phrase">bitmap_print_to_pagebuf</span></a></span><span class="refpurpose"> — 14 convert bitmap to list or hex format ASCII string 15 </span></dt><dt><span class="refentrytitle"><a href="API-bitmap-parselist-user.html"><span class="phrase">bitmap_parselist_user</span></a></span><span class="refpurpose"> — 16 </span></dt><dt><span class="refentrytitle"><a href="API-bitmap-remap.html"><span class="phrase">bitmap_remap</span></a></span><span class="refpurpose"> — 17 Apply map defined by a pair of bitmaps to another bitmap 18 </span></dt><dt><span class="refentrytitle"><a href="API-bitmap-bitremap.html"><span class="phrase">bitmap_bitremap</span></a></span><span class="refpurpose"> — 19 Apply map defined by a pair of bitmaps to a single bit 20 </span></dt><dt><span class="refentrytitle"><a href="API-bitmap-onto.html"><span class="phrase">bitmap_onto</span></a></span><span class="refpurpose"> — 21 translate one bitmap relative to another 22 </span></dt><dt><span class="refentrytitle"><a href="API-bitmap-fold.html"><span class="phrase">bitmap_fold</span></a></span><span class="refpurpose"> — 23 fold larger bitmap into smaller, modulo specified size 24 </span></dt><dt><span class="refentrytitle"><a href="API-bitmap-find-free-region.html"><span class="phrase">bitmap_find_free_region</span></a></span><span class="refpurpose"> — 25 find a contiguous aligned mem region 26 </span></dt><dt><span class="refentrytitle"><a href="API-bitmap-release-region.html"><span class="phrase">bitmap_release_region</span></a></span><span class="refpurpose"> — 27 release allocated bitmap region 28 </span></dt><dt><span class="refentrytitle"><a href="API-bitmap-allocate-region.html"><span class="phrase">bitmap_allocate_region</span></a></span><span class="refpurpose"> — 29 allocate bitmap region 30 </span></dt><dt><span class="refentrytitle"><a href="API-bitmap-copy-le.html"><span class="phrase">bitmap_copy_le</span></a></span><span class="refpurpose"> — 31 copy a bitmap, putting the bits into little-endian order. 32 </span></dt><dt><span class="refentrytitle"><a href="API---bitmap-parselist.html"><span class="phrase">__bitmap_parselist</span></a></span><span class="refpurpose"> — 33 convert list format ASCII string to bitmap 34 </span></dt><dt><span class="refentrytitle"><a href="API-bitmap-pos-to-ord.html"><span class="phrase">bitmap_pos_to_ord</span></a></span><span class="refpurpose"> — 35 find ordinal of set bit at given position in bitmap 36 </span></dt><dt><span class="refentrytitle"><a href="API-bitmap-ord-to-pos.html"><span class="phrase">bitmap_ord_to_pos</span></a></span><span class="refpurpose"> — 37 find position of n-th set bit in bitmap 38 </span></dt></dl></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-fls64.html">Prev</a> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="API---bitmap-shift-right.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">fls64</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_shift_right</span></td></tr></table></div></body></html> 39