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