NdisFreeBufferPool

VOID
NdisFreeBufferPool(

IN NDIS_HANDLE PoolHandle
);

NdisFreeBufferPool releases a handle obtained in a preceding call to NdisAllocateBufferPool.

Parameters

PoolHandle

Specifies the handle returned when the driver called NdisAllocateBufferPool. The pool handle is no longer valid after this function returns.

Comments

Before calling NdisFreeBufferPool, the driver must call NdisFreeBuffer as many times as necessary to release all buffer descriptors that were allocated with NdisAllocateBuffer but not yet released. Otherwise, the call to NdisFreeBufferPool causes a memory leak.

The driver must release any spin lock it is holding before calling NdisFreeBufferPool.

Callers of NdisFreeBufferPool run at IRQL <= DISPATCH_LEVEL.

See Also

NdisAllocateBuffer, NdisAllocateBufferPool, NdisFreeBuffer, NdisReleaseSpinLock