1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
6<META http-equiv="Content-Style-Type" content="text/css">
7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css">
8<title>CNTReleaseHandle</title>
9</head>
10
11<body>
12
13<h1>CNTReleaseHandle</h1>
14
15<h2>Syntax</h2>
16<dl><dd><pre><code>
17#include &lt;revolution/cnt.h&gt;
18
19s32 CNTReleaseHandle(CNTHandle* CntHandle);
20</code></pre></dd></dl>
21
22<h2>Arguments</h2>
23<p>
24<TABLE border="1" >
25  <tr>
26<TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>CntHandle</EM></STRONG></CODE></TD>
27<TD width="520">Pointer to the <CODE>CNTHandle</CODE> structure to release.</TD>
28  </tr>
29</TABLE>
30</p>
31
32<h2>Return Values</h2>
33<p>
34For a NAND application, returns one of the following codes:<br><br>
35<code>
36CNT_RESULT_OK<br>
37CNT_RESULT_ACCESS<br>
38CNT_RESULT_CORRUPT<br>
39CNT_RESULT_INVALID<br>
40CNT_RESULT_OUT_OF_MEMORY<br>
41CNT_RESULT_UNKNOWN<br>
42CNT_RESULT_FATAL<br>
43</code>
44</p>
45<p>
46For a disc application, always returns <code>CNT_RESULT_OK</code>.
47</p>
48
49<H2>Description</H2>
50<p>
51Releases the <CODE>CNTHandle</CODE> structure. FST memory is also released from the allocator. <br><br><B>Note:</B> This function may put the current thread to sleep. Refer to <a href="../os/Interrupt/intro.html">Interrupts and Callback Functions</a>.
52</p>
53
54<h2>See Also</h2>
55<p>
56<a href="./CNTInitHandle.html"><CODE>CNTInitHandle</CODE></a><br> <a href="../os/Interrupt/intro.html">Interrupts and Callback Functions</a>
57</p>
58<H2>Revision History</H2>
59<p>
602007/09/12 Added information about the sleep status of threads.<br>2006/12/04 Added result code descriptions.<br>2006/08/15 Initial version.
61</p>
62
63
64<hr><p>CONFIDENTIAL</p></body>
65</html>
66