1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<HTML> 3<HEAD> 4<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<TITLE>OS_AddToHeap</TITLE> 8<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 9</HEAD> 10<BODY> 11<H1 align="left">OS_AddToHeap <IMG src="../../image/NTR.gif" align="middle"><IMG src="../../image/TWL.gif" align="middle"></H1> 12<H2>Syntax</H2> 13<DL> 14 <DD> 15 <PRE><CODE>#include <nitro/os.h></CODE></PRE> 16 <PRE><CODE>void OS_AddToHeap( OSArenaId id, OSHeapHandle heap, void* start, void* end );</CODE></PRE> 17</DL> 18<H2>Arguments</H2> 19<TABLE border="1" width="100%"> 20 <TBODY> 21 <TR> 22 <TD width="13%"><EM><STRONG>id</STRONG></EM></TD> 23 <TD width="87%">Arena ID of the arena that is associated with a heap to which a region will be added.</TD> 24 </TR> 25 <TR> 26 <TD><B><I>heap</I></B></TD> 27 <TD>Handle of a heap to which a region will be added.</TD> 28 </TR> 29 <TR> 30 <TD><B><I>start</I></B></TD> 31 <TD>Start address of the region that is to be added.</TD> 32 </TR> 33 <TR> 34 <TD><B><I>end</I></B></TD> 35 <TD>End address (+1) of the region that is to be added.</TD> 36 </TR> 37 </TBODY> 38</TABLE> 39<H2>Return Values</H2> 40<P>None.</P> 41<H2>Description</H2> 42<P>This function adds a memory block to a heap region.</P> 43<P>This is used to create a non-contiguous heap region, add a region allocated by <CODE><A href="OS_AllocFixed.html">OS_AllocFixed</A></CODE>, or the like. The arena is specified with the arena ID (<em><strong>id</strong></em>). To read more about this value, see <a href="../arena/OS_InitArena.html"><code>OS_InitArena</code></a>.</P> 44<H2>See Also</H2> 45<P><A href="../arena/OS_InitArena.html"><code>OS_InitArena</code></A>, <A href="OS_InitAlloc.html"><code>OS_InitAlloc</code></A>, <A href="OS_CreateHeap.html"><code>OS_CreateHeap</code></A>, <A href="OS_AllocFixed.html"><code>OS_AllocFixed</code></A></P> 46<H2>Revision History</H2> 47<P>2004/01/06 Initial version.</P> 48<hr><p>CONFIDENTIAL</p></body> 49</HTML>