Debian Codegraph @

docs/api_reference/C/lockid_free.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;lock_id_free()</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="lock.html" title="Chapter 6.  The DB_LOCK Handle" />
11 <link rel="prev" href="lockid.html" title="DB_ENV-&gt;lock_id()" />
12 <link rel="next" href="lockput.html" title="DB_ENV-&gt;lock_put()" />
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;lock_id_free()</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="lockid.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 6. 
26 The DB_LOCK Handle
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="lockput.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="lockid_free"></a>DB_ENV-&gt;lock_id_free()</h2>
38 </div>
39 </div>
40 </div>
41 <pre class="programlisting">#include &lt;db.h&gt;
42
43 int
44 DB_ENV-&gt;lock_id_free(DB_ENV *env, u_int32_t id); </pre>
45 <p>
46 The <code class="methodname">DB_ENV-&gt;lock_id_free()</code> method frees a locker ID allocated by the
47 <a class="xref" href="lockid.html" title="DB_ENV-&gt;lock_id()">DB_ENV-&gt;lock_id()</a> method.
48 </p>
49 <p>
50 The <code class="methodname">DB_ENV-&gt;lock_id_free()</code> <span>
51 <span>
52 method returns a non-zero error value on failure and 0 on success.
53 </span>
54
55 </span>
56 </p>
57 <div class="sect2" lang="en" xml:lang="en">
58 <div class="titlepage">
59 <div>
60 <div>
61 <h3 class="title"><a id="idp52650576"></a>Parameters</h3>
62 </div>
63 </div>
64 </div>
65 <div class="sect3" lang="en" xml:lang="en">
66 <div class="titlepage">
67 <div>
68 <div>
69 <h4 class="title"><a id="idp52649928"></a>id</h4>
70 </div>
71 </div>
72 </div>
73 <p>
74 The <span class="bold"><strong>id</strong></span> parameter is the locker id to
75 be freed.
76 </p>
77 </div>
78 </div>
79 <div class="sect2" lang="en" xml:lang="en">
80 <div class="titlepage">
81 <div>
82 <div>
83 <h3 class="title"><a id="idp52653424"></a>Errors</h3>
84 </div>
85 </div>
86 </div>
87 <p>
88 The <code class="methodname">DB_ENV-&gt;lock_id_free()</code> <span>
89 <span>
90 method may fail and return one of the following non-zero errors:
91 </span>
92
93 </span>
94 </p>
95 <div class="sect3" lang="en" xml:lang="en">
96 <div class="titlepage">
97 <div>
98 <div>
99 <h4 class="title"><a id="idp52655200"></a>EINVAL</h4>
100 </div>
101 </div>
102 </div>
103 <p>
104 If the locker ID is invalid or locks are still held by this locker ID;
105 or if an invalid flag value or parameter was specified.
106 </p>
107 </div>
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="idp52654120"></a>Class</h3>
114 </div>
115 </div>
116 </div>
117 <p>
118 <a class="link" href="env.html" title="Chapter 5.  The DB_ENV Handle">DB_ENV</a>,
119 <a class="link" href="lock.html" title="Chapter 6.  The DB_LOCK Handle">DB_LOCK</a>
120 </p>
121 </div>
122 <div class="sect2" lang="en" xml:lang="en">
123 <div class="titlepage">
124 <div>
125 <div>
126 <h3 class="title"><a id="idp52649712"></a>See Also</h3>
127 </div>
128 </div>
129 </div>
130 <p>
131 <a class="xref" href="lock.html#locklist" title="Locking Subsystem and Related Methods">Locking Subsystem and Related Methods</a>
132 </p>
133 </div>
134 </div>
135 <div class="navfooter">
136 <hr />
137 <table width="100%" summary="Navigation footer">
138 <tr>
139 <td width="40%" align="left"><a accesskey="p" href="lockid.html">Prev</a> </td>
140 <td width="20%" align="center">
141 <a accesskey="u" href="lock.html">Up</a>
142 </td>
143 <td width="40%" align="right"> <a accesskey="n" href="lockput.html">Next</a></td>
144 </tr>
145 <tr>
146 <td width="40%" align="left" valign="top">DB_ENV-&gt;lock_id() </td>
147 <td width="20%" align="center">
148 <a accesskey="h" href="index.html">Home</a>
149 </td>
150 <td width="40%" align="right" valign="top"> DB_ENV-&gt;lock_put()</td>
151 </tr>
152 </table>
153 </div>
154 </body>
155 </html>