Previous Next

KeGetRecommendedSharedDataAlignment

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

NTKERNELAPI
ULONG
  KeGetRecommendedSharedDataAlignment (
    VOID
    );

Parameters

None

Return Value

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

Headers

Declared in wdm.h and ntddk.h. Include wdm.h or ntddk.h.

Comments

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.