Debian Codegraph @

docs/api_reference/C/memptrickle.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_ENV-&gt;memp_trickle()</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="mempsync.html" title="DB_ENV-&gt;memp_sync()" />
12 <link rel="next" href="envset_cache_max.html" title="DB_ENV-&gt;set_cache_max()" />
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_ENV-&gt;memp_trickle()</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="mempsync.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="envset_cache_max.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="memptrickle"></a>DB_ENV-&gt;memp_trickle()</h2>
38 </div>
39 </div>
40 </div>
41 <pre class="programlisting">#include &lt;db.h&gt;
42
43 int
44 DB_ENV-&gt;memp_trickle(DB_ENV *env, int percent, int *nwrotep); </pre>
45 <p>
46 The <code class="methodname">DB_ENV-&gt;memp_trickle()</code> method ensures that a specified percent of
47 the pages in the cache are clean, by writing dirty pages
48 to their backing files.
49 </p>
50 <p>
51 The purpose of the <code class="methodname">DB_ENV-&gt;memp_trickle()</code> function is to enable a
52 memory pool manager to ensure that a page is always available for
53 reading in new information without having to wait for a write.
54 </p>
55 <p>
56 The <code class="methodname">DB_ENV-&gt;memp_trickle()</code> <span>
57 <span>
58 method returns a non-zero error value on failure and 0 on success.
59 </span>
60
61 </span>
62 </p>
63 <div class="sect2" lang="en" xml:lang="en">
64 <div class="titlepage">
65 <div>
66 <div>
67 <h3 class="title"><a id="idp53292152"></a>Parameters</h3>
68 </div>
69 </div>
70 </div>
71 <div class="sect3" lang="en" xml:lang="en">
72 <div class="titlepage">
73 <div>
74 <div>
75 <h4 class="title"><a id="idp53293096"></a>percent</h4>
76 </div>
77 </div>
78 </div>
79 <p>
80 The <span class="bold"><strong>percent</strong></span> parameter is the percent
81 of the pages in the cache that should be clean.
82 </p>
83 </div>
84 <div class="sect3" lang="en" xml:lang="en">
85 <div class="titlepage">
86 <div>
87 <div>
88 <h4 class="title"><a id="idp53318744"></a>nwrotep</h4>
89 </div>
90 </div>
91 </div>
92 <p>
93 The <span class="bold"><strong>nwrotep</strong></span> parameter references
94 memory into which the number of pages written to reach the specified
95 percentage is copied.
96 </p>
97 </div>
98 </div>
99 <div class="sect2" lang="en" xml:lang="en">
100 <div class="titlepage">
101 <div>
102 <div>
103 <h3 class="title"><a id="idp53314688"></a>Errors</h3>
104 </div>
105 </div>
106 </div>
107 <p>
108 The <code class="methodname">DB_ENV-&gt;memp_trickle()</code> <span>
109 <span>
110 method may fail and return one of the following non-zero errors:
111 </span>
112
113 </span>
114 following non-zero errors:
115 </p>
116 <div class="sect3" lang="en" xml:lang="en">
117 <div class="titlepage">
118 <div>
119 <div>
120 <h4 class="title"><a id="idp53293160"></a>EINVAL</h4>
121 </div>
122 </div>
123 </div>
124 <p>
125 An invalid flag value or parameter was specified.
126 </p>
127 </div>
128 </div>
129 <div class="sect2" lang="en" xml:lang="en">
130 <div class="titlepage">
131 <div>
132 <div>
133 <h3 class="title"><a id="idp53325872"></a>Class</h3>
134 </div>
135 </div>
136 </div>
137 <p>
138 <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>
139 </p>
140 </div>
141 <div class="sect2" lang="en" xml:lang="en">
142 <div class="titlepage">
143 <div>
144 <div>
145 <h3 class="title"><a id="idp53327000"></a>See Also</h3>
146 </div>
147 </div>
148 </div>
149 <p>
150 <a class="xref" href="memp.html#memplist" title="Memory Pools and Related Methods">Memory Pools and Related Methods</a>
151 </p>
152 </div>
153 </div>
154 <div class="navfooter">
155 <hr />
156 <table width="100%" summary="Navigation footer">
157 <tr>
158 <td width="40%" align="left"><a accesskey="p" href="mempsync.html">Prev</a> </td>
159 <td width="20%" align="center">
160 <a accesskey="u" href="memp.html">Up</a>
161 </td>
162 <td width="40%" align="right"> <a accesskey="n" href="envset_cache_max.html">Next</a></td>
163 </tr>
164 <tr>
165 <td width="40%" align="left" valign="top">DB_ENV-&gt;memp_sync() </td>
166 <td width="20%" align="center">
167 <a accesskey="h" href="index.html">Home</a>
168 </td>
169 <td width="40%" align="right" valign="top"> DB_ENV-&gt;set_cache_max()</td>
170 </tr>
171 </table>
172 </div>
173 </body>
174 </html>