다음을 통해 공유


NdisGetCacheFillSize (Windows Embedded CE 6.0)

1/6/2010

This function returns the microprocessor's data cache-line boundary in bytes.

Syntax

ULONG NdisGetCacheFillSize();

Parameters

None.

Return Value

If successful it returns the host cache fill size.

Remarks

Drivers of DMA NICs can use the information returned by this function to avoid cache-line tearing during DMA transfers.

For example, a NIC driver might use the value returned by NdisGetCacheFillSize in any (or all) of the following ways:

  • Allocate cache-aligned buffers for DMA operations.
  • Transfer data from aligned buffers that are sized as an integral of the value returned by this function.
  • Subtract one from the returned value and use the result as a mask to determine whether a "physical" address in shared memory is aligned on a cache-line boundary.

Requirements

Header ndis.h
Library ndis.lib
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

NDIS Library Functions
NdisMAllocateSharedMemory
MiniportInitialize