Expand Minimize

RtlPrefetchMemoryNonTemporal routine

The RtlPrefetchMemoryNonTemporal routine provides a hint to the processor that a buffer should be temporarily moved into the processor cache.

Syntax


VOID RtlPrefetchMemoryNonTemporal(
  _In_  PVOID  Source,
  _In_  SIZE_T Length
);

Parameters

Source [in]

A pointer to the buffer to be moved into the processor cache.

Length [in]

The length of the buffer to be moved.

Return value

None.

Remarks

You should use this routine only for a buffer that will be written to or read from exactly once. Note that RtlPrefetchMemoryNonTemporal is only a hint to the processor: the buffer is not guaranteed to be moved into the cache. On x86-based and x64-based systems, this routine uses the prefetchnta instruction.

Requirements

Target platform

Universal

Version

Available in Windows Server 2003 and later versions of Windows.

Header

Wdm.h (include Ntddk.h or Wdm.h)

Library

Ntoskrnl.lib

IRQL

Any level

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft