Previous Next

NdisFreeBufferPool

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

VOID
  NdisFreeBufferPool(
    IN NDIS_HANDLE  PoolHandle
    );

Parameters

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

Headers

Declared in Ndis.h. Include Ndis.h.

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.

Callers of NdisFreeBufferPool run at IRQL <= DISPATCH_LEVEL.

See Also

NdisAllocateBuffer, NdisAllocateBufferPool, NdisFreeBuffer, NdisReleaseSpinLock