NdisGetCacheFillSize
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.
See Also
NdisMAllocateSharedMemory | MiniportInitialize
Last updated on Tuesday, May 18, 2004
© 1992-2003 Microsoft Corporation. All rights reserved.