VFSync(W)

C Specification


#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 );

Arguments

drive The name of the drive to be configured.
mode Mode.
VF_INVALIDATE Invalidate the cache.
VF_NINVALIDATE Do not invalidate the cache.

Return Values

Returns zero for success.
Otherwise, returns a VFErr other than zero.

Description

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.

See Also

VFFileSync

Revision History

2006/09/26 Release.


CONFIDENTIAL