1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META name="GENERATOR" content="Microsoft FrontPage 5.0"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css"> 9<title>OSAllocFromMEM2ArenaLo</title> 10</head> 11 12<body> 13 14<h1>OSAllocFromMEM2ArenaLo</h1> 15 16<h2>Syntax</h2> 17<dl><dd><pre class="construction"> 18#include <revolution/os.h> 19 20void* OSAllocFromMEM2ArenaLo(u32 size, u32 align); 21</pre></dd></dl> 22 23<h2>Arguments</h2> 24<TABLE class="arguments" border="1" > 25 <tr> 26<TH>size</TH> 27<TD>Size of object to allocate.</TD> 28 </tr> 29 <tr> 30<TH><STRONG><EM><CODE>align</CODE></EM></STRONG></TH> 31<TD>Object alignment and new arena boundary to set (must be a power of 2).</TD> 32 </tr> 33</TABLE> 34 35<h2>Return Values</h2> 36<P>A pointer to the allocated space aligned with <SPAN class="argument">align</SPAN>-byte boundaries. The new low boundary of the arena is also set and aligned with <SPAN class="argument">align</SPAN>-byte boundaries.</P> 37 38<H2>Description</H2> 39<P>Allocates <SPAN class="argument">size</SPAN> bytes from the lower boundary of the arena in external main memory (MEM2 area).( Extra memory from the arena may be consumed for the alignment (specified by <SPAN class="argument">align</SPAN>).</P> 40 41<h2>See Also</h2> 42<P class="reference"> 43<a href="../toc.html#Arena" target="contents">Arena Functions</a>, 44<a href="OSAllocFromMEM1ArenaHi.html">OSAllocFromMEM1ArenaHi</a>, 45<a href="OSAllocFromMEM1ArenaLo.html">OSAllocFromMEM1ArenaLo</a>, 46<a href="OSAllocFromMEM2ArenaHi.html">OSAllocFromMEM2ArenaHi</a> 47</p> 48 49<H2>Revision History</H2> 50<P> 512006/03/01 Initial version.<br> 52</P> 53 54<hr><p>CONFIDENTIAL</p></body> 55</html>