次の方法で共有


NdisGetSharedDataAlignment (Compact 2013)

3/26/2014

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

Syntax

ULONG
  NdisGetSharedDataAlignment(
    VOID
    );

Parameters

None

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. In using the returned value when allocating such structures minimizes cache effects that reduce the performance of multiprocessor systems.

Requirements

Header

ndis.h

See Also

Reference

NDIS Shared Memory Interface