NdisGetSharedDataAlignment function (ndis.h)

NdisGetSharedDataAlignment returns the preferred alignment for memory structures that can be shared by more than one processor.

Syntax

ULONG NdisGetSharedDataAlignment();

Return value

The boundary value, in bytes, on which drivers should align structures that can be shared by more than one processor.

Remarks

Use NdisGetSharedDataAlignment to determine the best alignment for data structures that will be shared between processors. Using the returned value when allocating such structures minimizes cache effects that reduce the performance of multiprocessor systems.

System support for NdisGetSharedDataAlignment is available in Windows XP and later versions.

Requirements

Requirement Value
Minimum supported client Supported for NDIS 6.0 and NDIS 5.1 drivers (see NdisGetSharedDataAlignment (NDIS 5.1)) in Windows Vista. Supported for NDIS 5.1 drivers (see NdisGetSharedDataAlignment (NDIS 5.1)) in Windows XP.
Target Platform Universal
Header ndis.h (include Ndis.h)
Library Ndis.lib
IRQL <= DISPATCH_LEVEL
DDI compliance rules Irql_Miscellaneous_Function(ndis)