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>NANDGetTmpDirUsage</title>
9</head>
10
11<body>
12
13<h1>NANDGetTmpDirUsage</h1>
14
15<h2>Syntax</h2>
16<dl><dd><pre class="construction">#include &lt;revolution/nand.h&gt;
17
18s32 NANDGetTmpDirUsage( u32 *fsBlock, u32 *inode );
19</pre></dd></dl>
20
21<h2>Arguments</h2>
22<p>
23<TABLE class="arguments" border="1" >
24  <tr>
25<TH>fsBlock</TH>
26<TD>Pointer to a u32-type variable that stores the number of FS blocks that are being consumed under the <CODE>/tmp</CODE> directory.</TD>
27  </tr>
28  <tr>
29<TH>inodes</TH>
30<TD>Pointer to a <CODE>u32</CODE> variable for storing the number of i-nodes used under the <CODE>/tmp</CODE> directory</TD>
31  </tr>
32</TABLE>
33</p>
34
35<h2>Return Values</h2>
36<p>
37Returns one of the following codes.
38<p>
39<code>
40NAND_RESULT_OK<br>
41NAND_RESULT_ALLOC_FAILED<br>
42NAND_RESULT_BUSY<br>
43NAND_RESULT_INVALID<br>
44NAND_RESULT_UNKNOWN<br>
45NAND_RESULT_FATAL_ERROR<br>
46</code>
47</p>
48</p>
49
50<H2>Description</H2>
51<p>
52Gets the number of FS blocks and i-nodes used under the <CODE>/tmp</CODE> directory. The used i-node count gotten by this function includes the i-nodes used by the <CODE>/tmp</CODE> directory itself.
53</p>
54
55<p>
56This function may put the current thread to sleep. For precautions related to calling similar functions, see <a href="../os/Interrupt/intro.html">Interrupts and Callback Functions</a>.
57</p>
58
59<h2>See Also</h2>
60<p class="reference">
61<a href="./NANDGetTmpDirUsageAsync.html">NANDGetTmpDirUsageAsync</a>,
62<a href="./NANDGetHomeDirUsage.html">NANDGetHomeDirUsage</a>,
63<a href="./NANDGetHomeDirUsageAsync.html">NANDGetHomeDirUsageAsync</a>,
64<a href="../os/Interrupt/intro.html">Interrupts and Callback Functions</a>
65</p>
66
67<H2>Revision History</H2>
68<p>
692007/09/25 Added information about the sleep status of threads.<br>2007/05/09 Initial version.<br>
70</p>
71
72<hr><p>CONFIDENTIAL</p></body>
73</html>