Debian Codegraph @

docs/api_reference/C/mempset_pgcookie.html

raw symbols SCIP
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-&gt;set_pgcookie()</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="mempset_maxsize.html" title="DB_MPOOLFILE-&gt;set_maxsize()" />
12 <link rel="next" href="mempset_priority.html" title="DB_MPOOLFILE-&gt;set_priority()" />
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-&gt;set_pgcookie()</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="mempset_maxsize.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="mempset_priority.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="mempset_pgcookie"></a>DB_MPOOLFILE-&gt;set_pgcookie()</h2>
38 </div>
39 </div>
40 </div>
41 <pre class="programlisting">#include &lt;db.h&gt;
42
43 int
44 DB_MPOOLFILE-&gt;set_pgcookie(DB_MPOOLFILE *mpf, DBT *pgcookie); </pre>
45 <p>
46 The <code class="methodname">DB_MPOOLFILE-&gt;set_pgcookie()</code> method specifies a byte string that
47 is provided to the functions registered to do input or output
48 processing of the file's pages as they are read from or written to,
49 the backing filesystem store. (See the
50 <a class="xref" href="mempregister.html" title="DB_ENV-&gt;memp_register()">DB_ENV-&gt;memp_register()</a>
51 documentation for more information.)
52 </p>
53 <p>
54 The <code class="methodname">DB_MPOOLFILE-&gt;set_pgcookie()</code> method configures a file in the
55 cache, not only operations performed using the specified
56 <a class="link" href="memp.html" title="Chapter 8.  The DB_MPOOLFILE Handle">DB_MPOOLFILE</a> handle.
57 </p>
58 <p>
59 The <code class="methodname">DB_MPOOLFILE-&gt;set_pgcookie()</code> method may not be called after the
60 <a class="xref" href="mempfopen.html" title="DB_MPOOLFILE-&gt;open()">DB_MPOOLFILE-&gt;open()</a>
61 method is called. If the file is already open in the cache when
62 <a class="xref" href="mempfopen.html" title="DB_MPOOLFILE-&gt;open()">DB_MPOOLFILE-&gt;open()</a> is
63 called, the information specified to <code class="methodname">DB_MPOOLFILE-&gt;set_pgcookie()</code>
64 will replace the existing information.
65 </p>
66 <p>
67 The <code class="methodname">DB_MPOOLFILE-&gt;set_pgcookie()</code> <span>
68 <span>
69 method returns a non-zero error value on failure and 0 on success.
70 </span>
71
72 </span>
73 </p>
74 <div class="sect2" lang="en" xml:lang="en">
75 <div class="titlepage">
76 <div>
77 <div>
78 <h3 class="title"><a id="idp53640304"></a>Parameters</h3>
79 </div>
80 </div>
81 </div>
82 <div class="sect3" lang="en" xml:lang="en">
83 <div class="titlepage">
84 <div>
85 <div>
86 <h4 class="title"><a id="idp53639400"></a>pgcookie</h4>
87 </div>
88 </div>
89 </div>
90 <p>
91 The <span class="bold"><strong>pgcookie</strong></span> parameter is a byte
92 string provided to the functions registered to do input or output
93 processing of the file's pages.
94 </p>
95 </div>
96 </div>
97 <div class="sect2" lang="en" xml:lang="en">
98 <div class="titlepage">
99 <div>
100 <div>
101 <h3 class="title"><a id="idp53629448"></a>Class</h3>
102 </div>
103 </div>
104 </div>
105 <p>
106 <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>
107 </p>
108 </div>
109 <div class="sect2" lang="en" xml:lang="en">
110 <div class="titlepage">
111 <div>
112 <div>
113 <h3 class="title"><a id="idp53642512"></a>See Also</h3>
114 </div>
115 </div>
116 </div>
117 <p>
118 <a class="xref" href="memp.html#memplist" title="Memory Pools and Related Methods">Memory Pools and Related Methods</a>
119 </p>
120 </div>
121 </div>
122 <div class="navfooter">
123 <hr />
124 <table width="100%" summary="Navigation footer">
125 <tr>
126 <td width="40%" align="left"><a accesskey="p" href="mempset_maxsize.html">Prev</a> </td>
127 <td width="20%" align="center">
128 <a accesskey="u" href="memp.html">Up</a>
129 </td>
130 <td width="40%" align="right"> <a accesskey="n" href="mempset_priority.html">Next</a></td>
131 </tr>
132 <tr>
133 <td width="40%" align="left" valign="top">DB_MPOOLFILE-&gt;set_maxsize() </td>
134 <td width="20%" align="center">
135 <a accesskey="h" href="index.html">Home</a>
136 </td>
137 <td width="40%" align="right" valign="top"> DB_MPOOLFILE-&gt;set_priority()</td>
138 </tr>
139 </table>
140 </div>
141 </body>
142 </html>