Debian Codegraph @

docs/api_reference/C/mempget_mp_max_write.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;get_mp_max_write()</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_mp_max_openfd.html" title="DB_ENV-&gt;get_mp_max_openfd()" />
12 <link rel="next" href="envget_mp_mmapsize.html" title="DB_ENV-&gt;get_mp_mmapsize()" />
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;get_mp_max_write()</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="mempget_mp_max_openfd.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="envget_mp_mmapsize.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_mp_max_write"></a>DB_ENV-&gt;get_mp_max_write()</h2>
38 </div>
39 </div>
40 </div>
41 <pre class="programlisting">#include &lt;db.h&gt;
42
43 int
44 DB_ENV-&gt;get_mp_max_write(DB_ENV *env, int *maxwritep,
45 db_timeout_t *maxwrite_sleepp); </pre>
46 <p>
47 The <code class="methodname">DB_ENV-&gt;get_mp_max_write()</code> method returns the current maximum
48 number of sequential write operations and microseconds to pause that the library can schedule when flushing
49 dirty pages from the cache. These values are set by the
50 <a class="xref" href="mempset_mp_max_write.html" title="DB_ENV-&gt;set_mp_max_write()">DB_ENV-&gt;set_mp_max_write()</a>
51 method.
52 </p>
53 <p>
54 The <code class="methodname">DB_ENV-&gt;get_mp_max_write()</code> method may be called at any time
55 during the life of the application.
56 </p>
57 <p>
58 The <code class="methodname">DB_ENV-&gt;get_mp_max_write()</code> <span>
59 <span>
60 method returns a non-zero error value on failure and 0 on success.
61 </span>
62
63 </span>
64 </p>
65 <div class="sect2" lang="en" xml:lang="en">
66 <div class="titlepage">
67 <div>
68 <div>
69 <h3 class="title"><a id="idp53172712"></a>Parameters</h3>
70 </div>
71 </div>
72 </div>
73 <div class="sect3" lang="en" xml:lang="en">
74 <div class="titlepage">
75 <div>
76 <div>
77 <h4 class="title"><a id="idp53172064"></a>maxwritep</h4>
78 </div>
79 </div>
80 </div>
81 <p>
82 The <span class="bold"><strong>maxwritep</strong></span> parameter references
83 memory into which the maximum number of sequential write operations
84 is copied.
85 </p>
86 </div>
87 <div class="sect3" lang="en" xml:lang="en">
88 <div class="titlepage">
89 <div>
90 <div>
91 <h4 class="title"><a id="idp53159664"></a>maxwrite_sleepp</h4>
92 </div>
93 </div>
94 </div>
95 <p>
96 The <span class="bold"><strong>maxwrite_sleepp</strong></span> parameter
97 references memory into which the microseconds to pause before
98 scheduling further write operations is copied.
99 </p>
100 </div>
101 </div>
102 <div class="sect2" lang="en" xml:lang="en">
103 <div class="titlepage">
104 <div>
105 <div>
106 <h3 class="title"><a id="idp53151848"></a>Class</h3>
107 </div>
108 </div>
109 </div>
110 <p>
111 <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>
112 </p>
113 </div>
114 <div class="sect2" lang="en" xml:lang="en">
115 <div class="titlepage">
116 <div>
117 <div>
118 <h3 class="title"><a id="idp53176232"></a>See Also</h3>
119 </div>
120 </div>
121 </div>
122 <p>
123 <a class="xref" href="memp.html#memplist" title="Memory Pools and Related Methods">Memory Pools and Related Methods</a>,
124 <a class="xref" href="mempset_mp_max_write.html" title="DB_ENV-&gt;set_mp_max_write()">DB_ENV-&gt;set_mp_max_write()</a>
125 </p>
126 </div>
127 </div>
128 <div class="navfooter">
129 <hr />
130 <table width="100%" summary="Navigation footer">
131 <tr>
132 <td width="40%" align="left"><a accesskey="p" href="mempget_mp_max_openfd.html">Prev</a> </td>
133 <td width="20%" align="center">
134 <a accesskey="u" href="memp.html">Up</a>
135 </td>
136 <td width="40%" align="right"> <a accesskey="n" href="envget_mp_mmapsize.html">Next</a></td>
137 </tr>
138 <tr>
139 <td width="40%" align="left" valign="top">DB_ENV-&gt;get_mp_max_openfd() </td>
140 <td width="20%" align="center">
141 <a accesskey="h" href="index.html">Home</a>
142 </td>
143 <td width="40%" align="right" valign="top"> DB_ENV-&gt;get_mp_mmapsize()</td>
144 </tr>
145 </table>
146 </div>
147 </body>
148 </html>