NdisGetSharedDataAlignment (NDIS 5.1) function

Note   NDIS 5. x has been deprecated and is superseded by NDIS 6. x. For new NDIS driver development, see Network Drivers Starting with Windows Vista. For information about porting NDIS 5. x drivers to NDIS 6. x, see Porting NDIS 5.x Drivers to NDIS 6.0.

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

See NdisGetSharedDataAlignment.

Header

Ndis.h (include Ndis.h)

IRQL

<= DISPATCH_LEVEL

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft