FF_FlushCache()
From FullFAT
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
- FF_CreateIOMAN()
- FF_DestroyIOMAN()
- FF_RegisterBlkDevice()
- FF_UnregisterBlkDevice()
- FF_MountPartition()
- FF_UnmountPartition()
Back to API