Partager via


NdisGetCacheFillSize (Windows CE 5.0)

Send Feedback

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

ULONG NdisGetCacheFillSize();

Parameters

None.

Return Values

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

OS Versions: Windows CE .NET 4.0 and later.
Header: Ndis.h.
Link Library: Ndis.lib

See Also

NdisMAllocateSharedMemory | MiniportInitialize

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.