NANDGetTmpDirUsage

Syntax

#include <revolution/nand.h>

s32 NANDGetTmpDirUsage( u32 *fsBlock, u32 *inode );

Arguments

fsBlock Pointer to a u32-type variable that stores the number of FS blocks that are being consumed under the /tmp directory.
inodes Pointer to a u32 variable for storing the number of i-nodes used under the /tmp directory

Return Values

Returns one of the following codes.

NAND_RESULT_OK
NAND_RESULT_ALLOC_FAILED
NAND_RESULT_BUSY
NAND_RESULT_INVALID
NAND_RESULT_UNKNOWN
NAND_RESULT_FATAL_ERROR

Description

Gets the number of FS blocks and i-nodes used under the /tmp directory. The used i-node count gotten by this function includes the i-nodes used by the /tmp directory itself.

This function sometimes puts the current thread to sleep, so it cannot be called from callback functions. For precautions related to calling similar functions, see Interrupts and Callback Functions.

See Also

NANDGetTmpDirUsageAsync
NANDGetHomeDirUsage
NANDGetHomeDirUsageAsync
Interrupts and Callback Functions

Revision History

2007/09/25 Added information about the sleep status of threads.
2007/05/09 Initial version.


CONFIDENTIAL