#include <revolution/nand.h>
s32 NANDFreeBlocks(u32 *bytes, u32 *inodes);
bytes |
A pointer to a u32 type variable that stores (in bytes) the file system's available space. |
inodes |
A pointer to a u32 type variable that stores the number of free inodes in the file system. |
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
Obtains the file system's available free space (in bytes) and the number of free inodes. However, you cannot use this function to determine whether new files or directories can be created (to protect the free space reserved by the system). To determine whether new files and directories can be created, use NANDCheck[Async] or NANDGetAvailableArea[Async].
This function may put the current thread to sleep. For precautions when calling similar functions, refer to Interrupts and Callback Functions.
NANDFreeBlocksAsync, NANDCheck, NANDCheckAsync, NANDGetAvailableArea, NANDGetAvailableAreaAsync, Interrupts and Callback Functions
2007/09/25 Added information on the sleep status of threads.
2006/11/30 Added NAND_RESULT_ALLOC_FAILED and NAND_RESULT_BUSY codes.
2006/10/25 Expanded statement to include NANDGetAvailableArea[Async]. Added links to See Also.
2006/08/30 Added caution regarding the creation of new files and directories.
2006/06/16 Initial version.
CONFIDENTIAL