The KeGetRecommendedSharedDataAlignment routine returns the preferred alignment for memory structures that can be accessed by more than one processor.
NTKERNELAPI
ULONG
KeGetRecommendedSharedDataAlignment (
VOID
);
None
KeGetRecommendedSharedDataAlignment returns the preferred alignment, in bytes, for memory structures that can be shared by more than one processor.
Declared in wdm.h and ntddk.h. Include wdm.h or ntddk.h.
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.