ULONG
NdisGetCacheFillSize(
);
NdisGetCacheFillSize returns the microprocessor’s data cache-line boundary in bytes.
If NdisGetCacheFillSize succeeds, it returns the host cache fill size.
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:
Callers of NdisGetCacheFillSize run at IRQL PASSIVE_LEVEL. Usually, miniport drivers call this function during initialization and save the value it returns.
MiniportInitialize, NdisMAllocateMapRegisters, NdisMAllocateSharedMemory, NdisMAllocateSharedMemoryAsync