1<?xml version="1.0" encoding="UTF-8" standalone="no"?> 2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 3<html xmlns="http://www.w3.org/1999/xhtml"> 4 <head> 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 6 <title>DbEnv::memp_fcreate()</title> 7 <link rel="stylesheet" href="apiReference.css" type="text/css" /> 8 <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /> 9 <link rel="start" href="index.html" title="Berkeley DB C++ API Reference" /> 10 <link rel="up" href="memp.html" title="Chapter��9.�� The DbMpoolFile Handle" /> 11 <link rel="prev" href="envget_mp_mmapsize.html" title="DbEnv::get_mp_mmapsize()" /> 12 <link rel="next" href="mempregister.html" title="DbEnv::memp_register()" /> 13 </head> 14 <body> 15 <div class="navheader"> 16 <table width="100%" summary="Navigation header"> 17 <tr> 18 <th colspan="3" align="center">DbEnv::memp_fcreate()</th> 19 </tr> 20 <tr> 21 <td width="20%" align="left"><a accesskey="p" href="envget_mp_mmapsize.html">Prev</a>��</td> 22 <th width="60%" align="center">Chapter��9.�� 23 The DbMpoolFile Handle 24 </th> 25 <td width="20%" align="right">��<a accesskey="n" href="mempregister.html">Next</a></td> 26 </tr> 27 </table> 28 <hr /> 29 </div> 30 <div class="sect1" lang="en" xml:lang="en"> 31 <div class="titlepage"> 32 <div> 33 <div> 34 <h2 class="title" style="clear: both"><a id="mempfcreate"></a>DbEnv::memp_fcreate()</h2> 35 </div> 36 </div> 37 </div> 38 <pre class="programlisting">#include <db_cxx.h> 39 40int 41DbEnv::memp_fcreate(DbMpoolFile **dbmfp, u_int32_t flags);</pre> 42 <p> 43 The <code class="methodname">DbEnv::memp_fcreate()</code> method creates a 44 <a class="link" href="memp.html" title="Chapter��9.�� The DbMpoolFile Handle">DbMpoolFile</a> structure that is the handle for a Berkeley DB 45 cache (that is, a shared memory buffer pool file). A pointer to this structure is returned in the memory to 46 which <span class="bold"><strong>dbmfp</strong></span> refers. Calling the 47 <a class="xref" href="mempfclose.html" title="DbMpoolFile::close()">DbMpoolFile::close()</a> method will discard the returned handle. 48 </p> 49 <p> 50 The <code class="methodname">DbEnv::memp_fcreate()</code> <span> 51 52 <span> 53 method either returns a non-zero error value or throws an 54 exception that encapsulates a non-zero error value on 55 failure, and returns 0 on success. 56 </span> 57 </span> 58 </p> 59 <div class="sect2" lang="en" xml:lang="en"> 60 <div class="titlepage"> 61 <div> 62 <div> 63 <h3 class="title"><a id="id1690465"></a>Parameters</h3> 64 </div> 65 </div> 66 </div> 67 <div class="sect3" lang="en" xml:lang="en"> 68 <div class="titlepage"> 69 <div> 70 <div> 71 <h4 class="title"><a id="id1690513"></a>dbmfp</h4> 72 </div> 73 </div> 74 </div> 75 <p> 76 The <code class="methodname">DbEnv::memp_fcreate()</code> 77 method returns a pointer to a mpool structure in 78 <span class="bold"><strong>dbmfp</strong></span>. 79 </p> 80 </div> 81 <div class="sect3" lang="en" xml:lang="en"> 82 <div class="titlepage"> 83 <div> 84 <div> 85 <h4 class="title"><a id="id1690461"></a>flags</h4> 86 </div> 87 </div> 88 </div> 89 <p> 90 The <span class="bold"><strong>flags</strong></span> parameter is currently 91 unused, and must be set to 0. 92 </p> 93 </div> 94 </div> 95 <div class="sect2" lang="en" xml:lang="en"> 96 <div class="titlepage"> 97 <div> 98 <div> 99 <h3 class="title"><a id="id1690679"></a>Class</h3> 100 </div> 101 </div> 102 </div> 103 <p> 104 <a class="link" href="env.html" title="Chapter��5.�� The DbEnv Handle">DbEnv</a>, <a class="link" href="memp.html" title="Chapter��9.�� The DbMpoolFile Handle">DbMpoolFile</a> 105 </p> 106 </div> 107 <div class="sect2" lang="en" xml:lang="en"> 108 <div class="titlepage"> 109 <div> 110 <div> 111 <h3 class="title"><a id="id1690693"></a>See Also</h3> 112 </div> 113 </div> 114 </div> 115 <p> 116 <a class="xref" href="memp.html#memplist" title="Memory Pools and Related Methods">Memory Pools and Related Methods</a> 117 </p> 118 </div> 119 </div> 120 <div class="navfooter"> 121 <hr /> 122 <table width="100%" summary="Navigation footer"> 123 <tr> 124 <td width="40%" align="left"><a accesskey="p" href="envget_mp_mmapsize.html">Prev</a>��</td> 125 <td width="20%" align="center"> 126 <a accesskey="u" href="memp.html">Up</a> 127 </td> 128 <td width="40%" align="right">��<a accesskey="n" href="mempregister.html">Next</a></td> 129 </tr> 130 <tr> 131 <td width="40%" align="left" valign="top">DbEnv::get_mp_mmapsize()��</td> 132 <td width="20%" align="center"> 133 <a accesskey="h" href="index.html">Home</a> 134 </td> 135 <td width="40%" align="right" valign="top">��DbEnv::memp_register()</td> 136 </tr> 137 </table> 138 </div> 139 </body> 140</html> 141