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>C Specification</h2> 16<dl><dd><pre><code> 17#include <revolution/nand.h> 18 19s32 NANDGetTmpDirUsage( u32 *fsBlock, u32 *inode ); 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>bytes</EM></STRONG></CODE></TD> 27<TD width="520">Pointer to the u32 type variable, which is used to store the number of FS blocks that are being consumed under <CODE>/tmp</CODE>.</TD> 28 </tr> 29 <tr> 30<TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>inodes</EM></STRONG></CODE></TD> 31<TD width="520">Pointer to the u32 type variable, which is used to store the number of inodes being consumed under <CODE>/tmp</CODE>.</TD> 32 </tr> 33</TABLE> 34</p> 35 36 37<h2>Return Values</h2> 38<p> 39Returns one of the following codes: 40<p> 41<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> 42</p> 43</p> 44 45<H2>Description</H2> 46<p> 47Gets the number of the FS blocks and inodes that are being consumed under the <CODE>/tmp</CODE> directory. As obtained with this function, the number of the inodes that are being consumed includes the inode of the <CODE>/tmp</CODE> directory itself. 48</p> 49 50<p> 51This function may put the current thread to sleep. For precautions when calling similar functions, refer to <a href="../os/Interrupt/intro.html">Interrupts and Callback Functions</a>. 52</p> 53 54<h2>See Also</h2> 55<p> 56<code><a href="./NANDGetTmpDirUsageAsync.html">NANDGetTmpDirUsageAsync</a></code>, <code><a href="./NANDGetHomeDirUsage.html">NANDGetHomeDirUsage</a></code>, <code><a href="./NANDGetHomeDirUsageAsync.html">NANDGetHomeDirUsageAsync</a></code>, <a href="../os/Interrupt/intro.html">Interrupts and Callback Functions</a> 57</p> 58 59<H2>Revision History</H2> 60<p> 612007/09/25 Added information on the sleep status of threads.<br>2007/05/09 Initial version. <BR> 62</p> 63 64<hr><p>CONFIDENTIAL</p></body> 65</html> 66