This function releases a handle obtained in a preceding call to the NdisAllocateBufferPool function.
Header file: | Ndis.h |
Windows CE versions: | 2.0 and later |
VOID NdisFreeBufferPool( IN NDIS_HANDLE PoolHandle );
Before calling this function, the driver must call the NdisFreeBuffer function as many times as necessary to release all buffer descriptors that were allocated with the NdisAllocateBuffer function but not yet released. Otherwise, the call to this function causes a memory leak.
The driver must release any spin lock that it is holding before calling this function.
A driver that calls this function runs at IRQL <= DISPATCH_LEVEL.
NdisAllocateBuffer, NdisAllocateBufferPool, NdisFreeBuffer, NdisReleaseSpinLock