<?xml version="1.0" encoding="ANSI_X3.4-1968" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><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.75.2" /><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="re102.html" title="fls" /><link rel="next" href="re103.html" title="__bitmap_shift_right" /></head><body><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="re102.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="re103.html">Next</a></td></tr></table><hr /></div><div class="chapter" title="Chapter 3. Basic Kernel Library Functions"><div class="titlepage"><div><div><h2 class="title"><a id="kernel-lib"></a>Chapter 3. Basic Kernel Library Functions</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="ch03.html#id2630756">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="ch03s03.html">CRC Functions</a></span></dt></dl></div><p> The Linux kernel provides more basic utility functions. </p><div class="sect1" title="Bitmap Operations"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="id2630756"></a>Bitmap Operations</h2></div></div></div><div class="toc"><dl><dt><span class="refentrytitle"><a href="re103.html"><span>__bitmap_shift_right</span></a></span><span class="refpurpose"> — logical right shift of the bits in a bitmap </span></dt><dt><span class="refentrytitle"><a href="re104.html"><span>__bitmap_shift_left</span></a></span><span class="refpurpose"> — logical left shift of the bits in a bitmap </span></dt><dt><span class="refentrytitle"><a href="re105.html"><span>bitmap_scnprintf</span></a></span><span class="refpurpose"> — convert bitmap to an ASCII hex string. </span></dt><dt><span class="refentrytitle"><a href="re106.html"><span>__bitmap_parse</span></a></span><span class="refpurpose"> — convert an ASCII hex string into a bitmap. </span></dt><dt><span class="refentrytitle"><a href="re107.html"><span>bitmap_parse_user</span></a></span><span class="refpurpose"> — </span></dt><dt><span class="refentrytitle"><a href="re108.html"><span>bitmap_scnlistprintf</span></a></span><span class="refpurpose"> — convert bitmap to list format ASCII string </span></dt><dt><span class="refentrytitle"><a href="re109.html"><span>bitmap_parselist</span></a></span><span class="refpurpose"> — convert list format ASCII string to bitmap </span></dt><dt><span class="refentrytitle"><a href="re110.html"><span>bitmap_remap</span></a></span><span class="refpurpose"> — Apply map defined by a pair of bitmaps to another bitmap </span></dt><dt><span class="refentrytitle"><a href="re111.html"><span>bitmap_bitremap</span></a></span><span class="refpurpose"> — Apply map defined by a pair of bitmaps to a single bit </span></dt><dt><span class="refentrytitle"><a href="re112.html"><span>bitmap_onto</span></a></span><span class="refpurpose"> — translate one bitmap relative to another </span></dt><dt><span class="refentrytitle"><a href="re113.html"><span>bitmap_fold</span></a></span><span class="refpurpose"> — fold larger bitmap into smaller, modulo specified size </span></dt><dt><span class="refentrytitle"><a href="re114.html"><span>bitmap_find_free_region</span></a></span><span class="refpurpose"> — find a contiguous aligned mem region </span></dt><dt><span class="refentrytitle"><a href="re115.html"><span>bitmap_release_region</span></a></span><span class="refpurpose"> — release allocated bitmap region </span></dt><dt><span class="refentrytitle"><a href="re116.html"><span>bitmap_allocate_region</span></a></span><span class="refpurpose"> — allocate bitmap region </span></dt><dt><span class="refentrytitle"><a href="re117.html"><span>bitmap_copy_le</span></a></span><span class="refpurpose"> — copy a bitmap, putting the bits into little-endian order. </span></dt><dt><span class="refentrytitle"><a href="re118.html"><span>bitmap_pos_to_ord</span></a></span><span class="refpurpose"> — </span></dt><dt><span class="refentrytitle"><a href="re119.html"><span>bitmap_ord_to_pos</span></a></span><span class="refpurpose"> — </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="re102.html">Prev</a> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="re103.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span>fls</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span>__bitmap_shift_right</span></td></tr></table></div></body></html>