VFInit

C Specification


#include <revolution/vf.h>

#define	VF_DRIVE_WORKSIZE		(16 * 1024)

void VFInit();
void VFInitEx( void* heapStartAddress, u32 size );

Arguments

heapStartAddress Work region (16 kilobytes required for each drive).
size The size of the work region.

Return Values

None.

Description

Initializes the VF library.

When you use the VFInit() function, static memory equal to 26 drives in size is used as the internal work region for the VF library.
If you use the VFInitEx() function instead, the size of this internal work region can be specified explicitly. Minimize the size and avoid having a large resident static memory by specifying the following for the value:
The necessary number of drives x VF_DRIVE_WORKSIZE (16KBytes).

Be sure to call VFFinalize before destroying the region passed by VFInitEx. If VFInit is called multiple times, calls following the first one are ignored. If VFFinalize is called, only the first VFInit call after it is enabled. To check whether VFInit has already been called, use VF IsAvailable.

See Also

VFFinalize, VFIsAvailable

Revision History

2006/09/11


CONFIDENTIAL