/usr/share/doc/libaprutil1-dev/html/group___a_p_r___util___r_m_m.html is in libaprutil1-dev 1.5.3-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 | <!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/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>Apache Portable Runtime Utility Library: Relocatable Memory Management Routines</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">Apache Portable Runtime Utility Library
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Data Structures</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark"> </span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(11)"><span class="SelectionMark"> </span>Pages</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#typedef-members">Typedefs</a> |
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">Relocatable Memory Management Routines<div class="ingroups"><a class="el" href="group___a_p_r___util.html">APR Utility Functions</a></div></div> </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:gadb4d418c417ece33c4430ba9df59070a"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="group___a_p_r___util___r_m_m.html#gadb4d418c417ece33c4430ba9df59070a">apr_rmm_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_p_r___util___r_m_m.html#gadb4d418c417ece33c4430ba9df59070a">apr_rmm_t</a></td></tr>
<tr class="separator:gadb4d418c417ece33c4430ba9df59070a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga70b508c81a0bc75350efdefb3410af12"><td class="memItemLeft" align="right" valign="top">typedef apr_size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_p_r___util___r_m_m.html#ga70b508c81a0bc75350efdefb3410af12">apr_rmm_off_t</a></td></tr>
<tr class="separator:ga70b508c81a0bc75350efdefb3410af12"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga65ebaca1a86f0667156592f40b81b681"><td class="memItemLeft" align="right" valign="top">apr_status_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_p_r___util___r_m_m.html#ga65ebaca1a86f0667156592f40b81b681">apr_rmm_init</a> (<a class="el" href="group___a_p_r___util___r_m_m.html#gadb4d418c417ece33c4430ba9df59070a">apr_rmm_t</a> **rmm, <a class="el" href="structapr__anylock__t.html">apr_anylock_t</a> *lock, void *membuf, apr_size_t memsize, apr_pool_t *cont)</td></tr>
<tr class="separator:ga65ebaca1a86f0667156592f40b81b681"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga8ccae93038489f2acb7588292df5d80a"><td class="memItemLeft" align="right" valign="top">apr_status_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_p_r___util___r_m_m.html#ga8ccae93038489f2acb7588292df5d80a">apr_rmm_destroy</a> (<a class="el" href="group___a_p_r___util___r_m_m.html#gadb4d418c417ece33c4430ba9df59070a">apr_rmm_t</a> *rmm)</td></tr>
<tr class="separator:ga8ccae93038489f2acb7588292df5d80a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gadf144b4071c5c4d85cded37ca0e58dff"><td class="memItemLeft" align="right" valign="top">apr_status_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_p_r___util___r_m_m.html#gadf144b4071c5c4d85cded37ca0e58dff">apr_rmm_attach</a> (<a class="el" href="group___a_p_r___util___r_m_m.html#gadb4d418c417ece33c4430ba9df59070a">apr_rmm_t</a> **rmm, <a class="el" href="structapr__anylock__t.html">apr_anylock_t</a> *lock, void *membuf, apr_pool_t *cont)</td></tr>
<tr class="separator:gadf144b4071c5c4d85cded37ca0e58dff"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga2171746dcfa1e0f07717224ad106091e"><td class="memItemLeft" align="right" valign="top">apr_status_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_p_r___util___r_m_m.html#ga2171746dcfa1e0f07717224ad106091e">apr_rmm_detach</a> (<a class="el" href="group___a_p_r___util___r_m_m.html#gadb4d418c417ece33c4430ba9df59070a">apr_rmm_t</a> *rmm)</td></tr>
<tr class="separator:ga2171746dcfa1e0f07717224ad106091e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga31e42a7c40bbd3f7f132eaf347a79d32"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group___a_p_r___util___r_m_m.html#ga70b508c81a0bc75350efdefb3410af12">apr_rmm_off_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_p_r___util___r_m_m.html#ga31e42a7c40bbd3f7f132eaf347a79d32">apr_rmm_malloc</a> (<a class="el" href="group___a_p_r___util___r_m_m.html#gadb4d418c417ece33c4430ba9df59070a">apr_rmm_t</a> *rmm, apr_size_t reqsize)</td></tr>
<tr class="separator:ga31e42a7c40bbd3f7f132eaf347a79d32"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga78561452a8fb3fef18f1203efaa0b92f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group___a_p_r___util___r_m_m.html#ga70b508c81a0bc75350efdefb3410af12">apr_rmm_off_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_p_r___util___r_m_m.html#ga78561452a8fb3fef18f1203efaa0b92f">apr_rmm_realloc</a> (<a class="el" href="group___a_p_r___util___r_m_m.html#gadb4d418c417ece33c4430ba9df59070a">apr_rmm_t</a> *rmm, void *entity, apr_size_t reqsize)</td></tr>
<tr class="separator:ga78561452a8fb3fef18f1203efaa0b92f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga12ff2a4c23548e2f1616a17734defaf8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group___a_p_r___util___r_m_m.html#ga70b508c81a0bc75350efdefb3410af12">apr_rmm_off_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_p_r___util___r_m_m.html#ga12ff2a4c23548e2f1616a17734defaf8">apr_rmm_calloc</a> (<a class="el" href="group___a_p_r___util___r_m_m.html#gadb4d418c417ece33c4430ba9df59070a">apr_rmm_t</a> *rmm, apr_size_t reqsize)</td></tr>
<tr class="separator:ga12ff2a4c23548e2f1616a17734defaf8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gad22b65c95d0964e37aecd4134294b016"><td class="memItemLeft" align="right" valign="top">apr_status_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_p_r___util___r_m_m.html#gad22b65c95d0964e37aecd4134294b016">apr_rmm_free</a> (<a class="el" href="group___a_p_r___util___r_m_m.html#gadb4d418c417ece33c4430ba9df59070a">apr_rmm_t</a> *rmm, <a class="el" href="group___a_p_r___util___r_m_m.html#ga70b508c81a0bc75350efdefb3410af12">apr_rmm_off_t</a> entity)</td></tr>
<tr class="separator:gad22b65c95d0964e37aecd4134294b016"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga6bf67e9f2d08f9f36d2c420648d8d3a0"><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_p_r___util___r_m_m.html#ga6bf67e9f2d08f9f36d2c420648d8d3a0">apr_rmm_addr_get</a> (<a class="el" href="group___a_p_r___util___r_m_m.html#gadb4d418c417ece33c4430ba9df59070a">apr_rmm_t</a> *rmm, <a class="el" href="group___a_p_r___util___r_m_m.html#ga70b508c81a0bc75350efdefb3410af12">apr_rmm_off_t</a> entity)</td></tr>
<tr class="separator:ga6bf67e9f2d08f9f36d2c420648d8d3a0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga3ed2e880ebc695aa8dd241e21b5a666e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group___a_p_r___util___r_m_m.html#ga70b508c81a0bc75350efdefb3410af12">apr_rmm_off_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_p_r___util___r_m_m.html#ga3ed2e880ebc695aa8dd241e21b5a666e">apr_rmm_offset_get</a> (<a class="el" href="group___a_p_r___util___r_m_m.html#gadb4d418c417ece33c4430ba9df59070a">apr_rmm_t</a> *rmm, void *entity)</td></tr>
<tr class="separator:ga3ed2e880ebc695aa8dd241e21b5a666e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gae638ec990cb1600f6f70a8b3a1e07ff8"><td class="memItemLeft" align="right" valign="top">apr_size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_p_r___util___r_m_m.html#gae638ec990cb1600f6f70a8b3a1e07ff8">apr_rmm_overhead_get</a> (int n)</td></tr>
<tr class="separator:gae638ec990cb1600f6f70a8b3a1e07ff8"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<h2 class="groupheader">Typedef Documentation</h2>
<a class="anchor" id="ga70b508c81a0bc75350efdefb3410af12"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef apr_size_t <a class="el" href="group___a_p_r___util___r_m_m.html#ga70b508c81a0bc75350efdefb3410af12">apr_rmm_off_t</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>Fundamental allocation unit, within a specific apr_rmm_t </p>
</div>
</div>
<a class="anchor" id="gadb4d418c417ece33c4430ba9df59070a"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef struct <a class="el" href="group___a_p_r___util___r_m_m.html#gadb4d418c417ece33c4430ba9df59070a">apr_rmm_t</a> <a class="el" href="group___a_p_r___util___r_m_m.html#gadb4d418c417ece33c4430ba9df59070a">apr_rmm_t</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>Structure to access Relocatable, Managed Memory </p>
</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="ga6bf67e9f2d08f9f36d2c420648d8d3a0"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void* apr_rmm_addr_get </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group___a_p_r___util___r_m_m.html#gadb4d418c417ece33c4430ba9df59070a">apr_rmm_t</a> * </td>
<td class="paramname"><em>rmm</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group___a_p_r___util___r_m_m.html#ga70b508c81a0bc75350efdefb3410af12">apr_rmm_off_t</a> </td>
<td class="paramname"><em>entity</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Retrieve the physical address of a relocatable allocation of memory </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">rmm</td><td>The relocatable memory block </td></tr>
<tr><td class="paramname">entity</td><td>The memory allocation to free </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>address The address, aligned with APR_ALIGN_DEFAULT. </dd></dl>
</div>
</div>
<a class="anchor" id="gadf144b4071c5c4d85cded37ca0e58dff"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">apr_status_t apr_rmm_attach </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group___a_p_r___util___r_m_m.html#gadb4d418c417ece33c4430ba9df59070a">apr_rmm_t</a> ** </td>
<td class="paramname"><em>rmm</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structapr__anylock__t.html">apr_anylock_t</a> * </td>
<td class="paramname"><em>lock</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void * </td>
<td class="paramname"><em>membuf</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">apr_pool_t * </td>
<td class="paramname"><em>cont</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Attach to a relocatable memory block already managed by the apr_rmm API. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">rmm</td><td>The relocatable memory block </td></tr>
<tr><td class="paramname">lock</td><td>An <a class="el" href="structapr__anylock__t.html">apr_anylock_t</a> of the appropriate type of lock </td></tr>
<tr><td class="paramname">membuf</td><td>The block of relocatable memory already under management </td></tr>
<tr><td class="paramname">cont</td><td>The pool to use for local storage and management </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ga12ff2a4c23548e2f1616a17734defaf8"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group___a_p_r___util___r_m_m.html#ga70b508c81a0bc75350efdefb3410af12">apr_rmm_off_t</a> apr_rmm_calloc </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group___a_p_r___util___r_m_m.html#gadb4d418c417ece33c4430ba9df59070a">apr_rmm_t</a> * </td>
<td class="paramname"><em>rmm</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">apr_size_t </td>
<td class="paramname"><em>reqsize</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Allocate memory from the block of relocatable memory and initialize it to zero. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">rmm</td><td>The relocatable memory block </td></tr>
<tr><td class="paramname">reqsize</td><td>How much memory to allocate </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ga8ccae93038489f2acb7588292df5d80a"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">apr_status_t apr_rmm_destroy </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group___a_p_r___util___r_m_m.html#gadb4d418c417ece33c4430ba9df59070a">apr_rmm_t</a> * </td>
<td class="paramname"><em>rmm</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Destroy a managed memory block. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">rmm</td><td>The relocatable memory block to destroy </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ga2171746dcfa1e0f07717224ad106091e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">apr_status_t apr_rmm_detach </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group___a_p_r___util___r_m_m.html#gadb4d418c417ece33c4430ba9df59070a">apr_rmm_t</a> * </td>
<td class="paramname"><em>rmm</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Detach from the managed block of memory. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">rmm</td><td>The relocatable memory block to detach from </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="gad22b65c95d0964e37aecd4134294b016"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">apr_status_t apr_rmm_free </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group___a_p_r___util___r_m_m.html#gadb4d418c417ece33c4430ba9df59070a">apr_rmm_t</a> * </td>
<td class="paramname"><em>rmm</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group___a_p_r___util___r_m_m.html#ga70b508c81a0bc75350efdefb3410af12">apr_rmm_off_t</a> </td>
<td class="paramname"><em>entity</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Free allocation returned by apr_rmm_malloc or apr_rmm_calloc. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">rmm</td><td>The relocatable memory block </td></tr>
<tr><td class="paramname">entity</td><td>The memory allocation to free </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ga65ebaca1a86f0667156592f40b81b681"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">apr_status_t apr_rmm_init </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group___a_p_r___util___r_m_m.html#gadb4d418c417ece33c4430ba9df59070a">apr_rmm_t</a> ** </td>
<td class="paramname"><em>rmm</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structapr__anylock__t.html">apr_anylock_t</a> * </td>
<td class="paramname"><em>lock</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void * </td>
<td class="paramname"><em>membuf</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">apr_size_t </td>
<td class="paramname"><em>memsize</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">apr_pool_t * </td>
<td class="paramname"><em>cont</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Initialize a relocatable memory block to be managed by the apr_rmm API. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">rmm</td><td>The relocatable memory block </td></tr>
<tr><td class="paramname">lock</td><td>An <a class="el" href="structapr__anylock__t.html">apr_anylock_t</a> of the appropriate type of lock, or NULL if no locking is required. </td></tr>
<tr><td class="paramname">membuf</td><td>The block of relocatable memory to be managed </td></tr>
<tr><td class="paramname">memsize</td><td>The size of relocatable memory block to be managed </td></tr>
<tr><td class="paramname">cont</td><td>The pool to use for local storage and management </td></tr>
</table>
</dd>
</dl>
<dl class="section remark"><dt>Remarks</dt><dd>Both </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">membuf</td><td>and </td></tr>
<tr><td class="paramname">memsize</td><td>must be aligned (for instance using APR_ALIGN_DEFAULT). </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ga31e42a7c40bbd3f7f132eaf347a79d32"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group___a_p_r___util___r_m_m.html#ga70b508c81a0bc75350efdefb3410af12">apr_rmm_off_t</a> apr_rmm_malloc </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group___a_p_r___util___r_m_m.html#gadb4d418c417ece33c4430ba9df59070a">apr_rmm_t</a> * </td>
<td class="paramname"><em>rmm</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">apr_size_t </td>
<td class="paramname"><em>reqsize</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Allocate memory from the block of relocatable memory. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">rmm</td><td>The relocatable memory block </td></tr>
<tr><td class="paramname">reqsize</td><td>How much memory to allocate </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ga3ed2e880ebc695aa8dd241e21b5a666e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group___a_p_r___util___r_m_m.html#ga70b508c81a0bc75350efdefb3410af12">apr_rmm_off_t</a> apr_rmm_offset_get </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group___a_p_r___util___r_m_m.html#gadb4d418c417ece33c4430ba9df59070a">apr_rmm_t</a> * </td>
<td class="paramname"><em>rmm</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void * </td>
<td class="paramname"><em>entity</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Compute the offset of a relocatable allocation of memory </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">rmm</td><td>The relocatable memory block </td></tr>
<tr><td class="paramname">entity</td><td>The physical address to convert to an offset </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="gae638ec990cb1600f6f70a8b3a1e07ff8"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">apr_size_t apr_rmm_overhead_get </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>n</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Compute the required overallocation of memory needed to fit n allocs </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">n</td><td>The number of alloc/calloc regions desired </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ga78561452a8fb3fef18f1203efaa0b92f"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group___a_p_r___util___r_m_m.html#ga70b508c81a0bc75350efdefb3410af12">apr_rmm_off_t</a> apr_rmm_realloc </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group___a_p_r___util___r_m_m.html#gadb4d418c417ece33c4430ba9df59070a">apr_rmm_t</a> * </td>
<td class="paramname"><em>rmm</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void * </td>
<td class="paramname"><em>entity</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">apr_size_t </td>
<td class="paramname"><em>reqsize</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Realloc memory from the block of relocatable memory. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">rmm</td><td>The relocatable memory block </td></tr>
<tr><td class="paramname">entity</td><td>The memory allocation to realloc </td></tr>
<tr><td class="paramname">reqsize</td><td>The new size </td></tr>
</table>
</dd>
</dl>
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Dec 10 2013 16:23:08 for Apache Portable Runtime Utility Library by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.5
</small></address>
</body>
</html>
|