#include <revolution/vf.h>
typedef s32 VFErr;
#define VF_NINVALIDATE (0x0)
#define VF_INVALIDATE (0x1)
extern VFErr VFSync( const char* drive, s32 mode );
extern VFErr VFSyncW( const VFWchar* drive, s32 mode );
drive |
The name of the drive to be configured. | ||||
mode |
Mode.
|
Returns zero for success.
Otherwise, returns a VFErr other than zero.
Writes back all data in the cache of the specified drive to the media.
However, data in the cache that has not been updated is not written back.
Setting FA_INVALIDATE (Invalidate the cache) for the mode invalidates all cache data. Data stored on media is read into the cache buffer the next time this memory location is accessed.
2006/09/26 Release.
CONFIDENTIAL