NdisGetSharedDataAlignment function

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

Syntax


ULONG NdisGetSharedDataAlignment(void);

Parameters

This function has no parameters.

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

Version

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.

Header

Ndis.h (include Ndis.h)

IRQL

<= DISPATCH_LEVEL

DDI compliance rules

Irql_Miscellaneous_Function

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft. All rights reserved.