NANDGetHomeDirUsage

Syntax

#include <revolution/nand.h>

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

Arguments

fsBlock Pointer to the u32-type variable that stores the number of FS blocks being consumed under the home directory.
inodes Pointer to the u32-type variable that stores the number of inodes being consumed under the home 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 application's home directory. The used i-node count gotten by this function includes the i-nodes used by the home directory itself.

This function may put the current thread to sleep. For precautions when calling similar functions, refer to Interrupts and Callback Functions.

See Also

NANDGetHomeDirUsageAsync, NANDGetTmpDirUsage, NANDGetTmpDirUsageAsync, Interrupts and Callback Functions

Revision History

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


CONFIDENTIAL