<?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 4. Memory Management in Linux</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="re128.html" title="crc_ccitt" /><link rel="next" href="re129.html" title="kcalloc" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 4. Memory Management in Linux</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="re128.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="re129.html">Next</a></td></tr></table><hr /></div><div class="chapter" title="Chapter 4. Memory Management in Linux"><div class="titlepage"><div><div><h2 class="title"><a id="mm"></a>Chapter 4. Memory Management in Linux</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="ch04.html#id2636427">The Slab Cache</a></span></dt><dt><span class="sect1"><a href="ch04s02.html">User Space Memory Access</a></span></dt><dt><span class="sect1"><a href="ch04s03.html">More Memory Management Functions</a></span></dt></dl></div><div class="sect1" title="The Slab Cache"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="id2636427"></a>The Slab Cache</h2></div></div></div><div class="toc"><dl><dt><span class="refentrytitle"><a href="re129.html"><span>kcalloc</span></a></span><span class="refpurpose"> — allocate memory for an array. The memory is set to zero. </span></dt><dt><span class="refentrytitle"><a href="re130.html"><span>kmalloc_node</span></a></span><span class="refpurpose"> — allocate memory from a specific node </span></dt><dt><span class="refentrytitle"><a href="re131.html"><span>kzalloc</span></a></span><span class="refpurpose"> — allocate memory. The memory is set to zero. </span></dt><dt><span class="refentrytitle"><a href="re132.html"><span>kzalloc_node</span></a></span><span class="refpurpose"> — allocate zeroed memory from a particular memory node. </span></dt><dt><span class="refentrytitle"><a href="re133.html"><span>kmem_cache_create</span></a></span><span class="refpurpose"> — Create a cache. </span></dt><dt><span class="refentrytitle"><a href="re134.html"><span>kmem_cache_shrink</span></a></span><span class="refpurpose"> — Shrink a cache. </span></dt><dt><span class="refentrytitle"><a href="re135.html"><span>kmem_cache_destroy</span></a></span><span class="refpurpose"> — delete a cache </span></dt><dt><span class="refentrytitle"><a href="re136.html"><span>kmem_cache_alloc</span></a></span><span class="refpurpose"> — Allocate an object </span></dt><dt><span class="refentrytitle"><a href="re137.html"><span>kmem_cache_free</span></a></span><span class="refpurpose"> — Deallocate an object </span></dt><dt><span class="refentrytitle"><a href="re138.html"><span>kfree</span></a></span><span class="refpurpose"> — free previously allocated memory </span></dt><dt><span class="refentrytitle"><a href="re139.html"><span>ksize</span></a></span><span class="refpurpose"> — get the actual amount of memory allocated for a given object </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="re128.html">Prev</a> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="re129.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span>crc_ccitt</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span>kcalloc</span></td></tr></table></div></body></html>