FF_FlushCache()

From FullFAT
Jump to: navigation, search


Attempts to perform a complete flush of all working buffers in FullFAT. It does not Flush buffers that are flagged as in-use.

Because this function does not guarantee a full cache flush, another API function is proposed: FF_ForceFlushCache(). This function would block until all buffers have been free'd and flushed. A timeout option should be available. FF_FlushCache() simply flushes all complete operations.


Contents

Prototype

FF_ERROR FF_FlushCache(FF_IOMAN *pIoman);

Parameters

pIoman

Pointer to an FF_IOMAN object, as returned from the FF_CreateIOMAN() function.

Return Value

Returns FF_ERR_NONE on success.

All errors are negative, and can be passed to the FF_GetErrMessage() function to get a meaningful string describing the error.


See Also


Back to API

Personal tools