Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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