KeGetRecommendedSharedDataAlignment function (wdm.h)

The KeGetRecommendedSharedDataAlignment routine returns the preferred alignment for memory structures that can be accessed by more than one processor.

Syntax

ULONG KeGetRecommendedSharedDataAlignment();

Return value

KeGetRecommendedSharedDataAlignment returns the preferred alignment, in bytes, for memory structures that can be shared by more than one processor.

Remarks

Use KeGetRecommendedSharedDataAlignment to determine the best alignment for data structures that will be shared between processors. The value returned minimizes cache effects that negatively impact performance on multiprocessor systems.

Requirements

Requirement Value
Minimum supported client Available in Windows XP and later versions of Windows.
Target Platform Universal
Header wdm.h (include Wdm.h, Ntddk.h, Ntifs.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL Any level