Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The WRITE_CACHE_TYPE enumeration specifies the cache type.
Syntax
typedef enum _WRITE_CACHE_TYPE {
WriteCacheTypeUnknown,
WriteCacheTypeNone,
WriteCacheTypeWriteBack,
WriteCacheTypeWriteThrough
} WRITE_CACHE_TYPE;
Constants
WriteCacheTypeUnknownThe system cannot report the type of the write cache. |
WriteCacheTypeNoneThe system cannot report the type of the write cache. |
WriteCacheTypeWriteBackThe device has a write back cache. |
WriteCacheTypeWriteThroughThe device has a write through cache. |
Remarks
There are two main types of write cache: write back and write through. With a write-back cache, the device does not copy cache data to nonvolatile media until absolutely necessary. This type of operation improves the performance of write operations. With a write-through cache, the device writes data to the cache and the media in parallel. This type of operation does not improve write performance, but it makes subsequent read operations faster.
The IOCTL_STORAGE_QUERY_PROPERTY request reports a WRITE_CACHE_TYPE value in the STORAGE_WRITE_CACHE_PROPERTY structure.
Requirements
| Requirement | Value |
|---|---|
| Header | ntddstor.h |