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 MEMORY_CACHING_TYPE enumeration type specifies the permitted caching behavior when allocating or mapping memory.
Syntax
typedef enum _MEMORY_CACHING_TYPE {
MmNonCached,
MmCached,
MmWriteCombined,
MmHardwareCoherentCached,
MmNonCachedUnordered,
MmUSWCCached,
MmMaximumCacheType,
MmNotMapped
} MEMORY_CACHING_TYPE;
Constants
MmNonCachedThe requested memory should not be cached by the processor. |
MmCachedThe processor should cache the requested memory. |
MmWriteCombinedThe requested memory should not be cached by the processor, but writes to the memory can be combined by the processor. |
MmHardwareCoherentCachedReserved for system use. |
MmNonCachedUnorderedReserved for system use. |
MmUSWCCachedReserved for system use. |
MmMaximumCacheTypeReserved for system use. |
MmNotMapped |
Remarks
Processor translation buffers cache virtual to physical address translations. These translation buffers allow many virtual addresses to map a single physical address. However, only one caching behavior is allowed for any given physical address translation. Therefore, if a driver maps two different virtual address ranges to the same physical address, it must ensure that it specifies the same caching behavior for both. Otherwise, the processor behavior is undefined with unpredictable system results.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Supported in Windows 2000 and later versions of Windows. |
| Header | wdm.h (include Ntddk.h, Wdm.h, Miniport.h, Wudfwdm.h) |
See also
MmAllocateContiguousMemorySpecifyCache