| 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>DB_MPOOLFILE->get_fileid()</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 8. The DB_MPOOLFILE Handle" /> |
| 11 | <link rel="prev" href="mempget_clear_len.html" title="DB_MPOOLFILE->get_clear_len()" /> |
| 12 | <link rel="next" href="mempget_flags.html" title="DB_MPOOLFILE->get_flags()" /> |
| 13 | </head> |
| 14 | <body> |
| 15 | <div xmlns="" class="navheader"> |
| 16 | <div class="libver"> |
| 17 | <p>Library Version 11.2.5.3</p> |
| 18 | </div> |
| 19 | <table width="100%" summary="Navigation header"> |
| 20 | <tr> |
| 21 | <th colspan="3" align="center">DB_MPOOLFILE->get_fileid()</th> |
| 22 | </tr> |
| 23 | <tr> |
| 24 | <td width="20%" align="left"><a accesskey="p" href="mempget_clear_len.html">Prev</a> </td> |
| 25 | <th width="60%" align="center">Chapter 8. |
| 26 | The DB_MPOOLFILE Handle |
| 27 | </th> |
| 28 | <td width="20%" align="right"> <a accesskey="n" href="mempget_flags.html">Next</a></td> |
| 29 | </tr> |
| 30 | </table> |
| 31 | <hr /> |
| 32 | </div> |
| 33 | <div class="sect1" lang="en" xml:lang="en"> |
| 34 | <div class="titlepage"> |
| 35 | <div> |
| 36 | <div> |
| 37 | <h2 class="title" style="clear: both"><a id="mempget_fileid"></a>DB_MPOOLFILE->get_fileid()</h2> |
| 38 | </div> |
| 39 | </div> |
| 40 | </div> |
| 41 | <pre class="programlisting">#include <db.h> |
| 42 | |
| 43 | int |
| 44 | DB_MPOOLFILE->get_fileid(DB_MPOOLFILE *mpf, u_int8_t *fileid); </pre> |
| 45 | <p> |
| 46 | The <code class="methodname">DB_MPOOLFILE->get_fileid()</code> method copies the |
| 47 | file's identifier into the memory location referenced by <span class="bold"><strong>fileid</strong></span>. The fileid specifies a unique |
| 48 | identifier for the file, which is used so that the cache functions |
| 49 | (that is, the shared memory buffer pool functions) are able to |
| 50 | uniquely identify files. This is necessary for multiple processes |
| 51 | wanting to share a file to correctly identify the file in the |
| 52 | cache. |
| 53 | </p> |
| 54 | <p> |
| 55 | The <code class="methodname">DB_MPOOLFILE->get_fileid()</code> <span> |
| 56 | <span> |
| 57 | method returns a non-zero error value on failure and 0 on success. |
| 58 | </span> |
| 59 | |
| 60 | </span> |
| 61 | </p> |
| 62 | <div class="sect2" lang="en" xml:lang="en"> |
| 63 | <div class="titlepage"> |
| 64 | <div> |
| 65 | <div> |
| 66 | <h3 class="title"><a id="idp53515504"></a>Class</h3> |
| 67 | </div> |
| 68 | </div> |
| 69 | </div> |
| 70 | <p> |
| 71 | <a class="link" href="env.html" title="Chapter 5. The DB_ENV Handle">DB_ENV</a>, <a class="link" href="memp.html" title="Chapter 8. The DB_MPOOLFILE Handle">DB_MPOOLFILE</a> |
| 72 | </p> |
| 73 | </div> |
| 74 | <div class="sect2" lang="en" xml:lang="en"> |
| 75 | <div class="titlepage"> |
| 76 | <div> |
| 77 | <div> |
| 78 | <h3 class="title"><a id="idp53516584"></a>See Also</h3> |
| 79 | </div> |
| 80 | </div> |
| 81 | </div> |
| 82 | <p> |
| 83 | <a class="xref" href="memp.html#memplist" title="Memory Pools and Related Methods">Memory Pools and Related Methods</a>, |
| 84 | <a class="xref" href="mempset_fileid.html" title="DB_MPOOLFILE->set_fileid()">DB_MPOOLFILE->set_fileid()</a> |
| 85 | </p> |
| 86 | </div> |
| 87 | </div> |
| 88 | <div class="navfooter"> |
| 89 | <hr /> |
| 90 | <table width="100%" summary="Navigation footer"> |
| 91 | <tr> |
| 92 | <td width="40%" align="left"><a accesskey="p" href="mempget_clear_len.html">Prev</a> </td> |
| 93 | <td width="20%" align="center"> |
| 94 | <a accesskey="u" href="memp.html">Up</a> |
| 95 | </td> |
| 96 | <td width="40%" align="right"> <a accesskey="n" href="mempget_flags.html">Next</a></td> |
| 97 | </tr> |
| 98 | <tr> |
| 99 | <td width="40%" align="left" valign="top">DB_MPOOLFILE->get_clear_len() </td> |
| 100 | <td width="20%" align="center"> |
| 101 | <a accesskey="h" href="index.html">Home</a> |
| 102 | </td> |
| 103 | <td width="40%" align="right" valign="top"> DB_MPOOLFILE->get_flags()</td> |
| 104 | </tr> |
| 105 | </table> |
| 106 | </div> |
| 107 | </body> |
| 108 | </html> |