FSDMGR_FlushCache (Compact 2013)

3/26/2014

This function is called by File System Disk Manager for a disk cache to commit dirty blocks in the cache to the disk. This is necessary only for a write-back cache.

Syntax

DWORD  FSDMGR_FlushCache(
    DWORD dwCacheId,
    PSECTOR_LIST_ENTRY pSectorList,
    DWORD dwNumEntries,
    DWORD dwFlushFlags
);

Parameters

  • pSectorList
    [in] Pointer to a sector list describing ranges of sectors to flush.

    If this value is set to NULL, the entire cache is flushed.

  • dwNumEntries
    [in] Number of entries in the sector list.

    Set to zero if flushing the entire cache.

  • dwFlushFlags
    Not used.

Return Value

ERROR_SUCCESS indicates success. A Microsoft Win32 error code indicates failure.

Requirements

Header

fsdmgr.h

Library

Fsdmgr.lib

See Also

Reference

FSDMGR Functions
FSD Functions
Disk Cache Manager Functions