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>NANDGetAvailableAreaAsync</title>
9</head>
10
11<body>
12
13<h1>NANDGetAvailableAreaAsync</h1>
14
15<h2>C Specification</h2>
16<dl><dd><pre><code>
17#include &lt;revolution/nand.h&gt;
18
19typedef void (*NANDCallback)( s32 result, NANDCommandBlock *block );
20
21s32 NANDGetAvailableAreaAsync( u32 *fsBlock, u32 *inode, NANDCallback cb, NANDCommandBlock *block );
22</code></pre></dd></dl>
23
24<h2>Arguments</h2>
25<p>
26<TABLE border="1" >
27  <tr>
28<TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>fsBlock</EM></STRONG></CODE></TD>
29<TD width="520">Pointer to a u32 type variable. Stores the usable FS block count (0 =&lt; *fsBlock =&lt; 1024).</TD>
30  </tr>
31  <tr>
32<TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>inode</EM></STRONG></CODE></TD>
33<TD width="520">Pointer to a u32 type variable. Stores the usable inode count (0 =&lt; *inode =&lt; 32).</TD>
34  </tr>
35  <tr>
36<TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>cb</EM></STRONG></CODE></TD>
37<TD width="520">Callback function to call when this function completes processing.</TD>
38  </tr>
39  <tr>
40<TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>block</EM></STRONG></CODE></TD>
41<TD width="520">Command block structure to be passed to the callback function.</TD>
42  </tr>
43</TABLE>
44</p>
45
46
47<h2>Return Values</h2>
48<p>
49Returns one of the following codes:
50<p>
51<code>NAND_RESULT_OK<br> NAND_RESULT_ALLOC_FAILED<br> NAND_RESULT_BUSY<br> NAND_RESULT_INVALID<br> NAND_RESULT_UNKNOWN<br> NAND_RESULT_FATAL_ERROR<br></code>
52</p>
53</p>
54
55<h2>Description</h2>
56<p>
57Obtains asynchronously the upper limit of the FS block count and the inode count of the file/directory that can be created by the application program (under the home directory). The upper limit in the home directory is set to 16MB and 32 inodes, respectively. The range of values that can be obtained through this function will be as shown in the above table. Even if the application has not created anything in the home directory, the value obtained through this function will be small if most of the user area is used by other applications.
58</p>
59<p>
60This function essentially provides the same features as <a href="./NANDCheckAsync.html">NANDCheckAsync</a>. Use this function when creating new files and directories if you want to inform the player about the availability in Wii console NAND memory.
61</p>
62
63<h2>See Also</h2>
64<p>
65<code><a href="./NANDGetAvailableArea.html">NANDGetAvailableArea</a></code>, <code><a href="./NANDCheck.html">NANDCheck</a></code>, <code><a href="./NANDCheckAsync.html">NANDCheckAsync</a></code>, <code><a href="./NANDFreeBlocks.html">NANDFreeBlocks</a></code>, <code><a href="./NANDFreeBlocksAsync.html">NANDFreeBlocksAsync</a></code>
66</p>
67
68<h2>Revision History</h2>
69<p>
702006/11/30 Deleted text about alternatives to <CODE>NANDCheck[Async]</CODE>.<br>2006/10/25 Initial version.<br>
71</p>
72
73<hr>
74<P>CONFIDENTIAL</p>
75</BODY>
76</HTML>
77