NANDGetHomeDirUsage

C Specification


#include <revolution/nand.h>

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

Arguments

bytes Pointer to the u32 type variable, which is used to store the number of the FS blocks that are being consumed under the home directory.
inodes Pointer to the u32 type variable, which is used to store the number of the inodes that are 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 the FS blocks and inodes that are being consumed under the home directory of the application. As obtained with this function, the number of the inodes being consumed includes the inode of 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 on the sleep status of threads.
2007/05/09 Initial version.


CONFIDENTIAL