NdisFreeBufferPool

This function releases a handle obtained in a preceding call to the NdisAllocateBufferPool function.

At a Glance

Header file: Ndis.h
Windows CE versions: 2.0 and later

Syntax

VOID NdisFreeBufferPool( IN NDIS_HANDLE PoolHandle );

Parameters

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

Remarks

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.

See Also

NdisAllocateBuffer, NdisAllocateBufferPool, NdisFreeBuffer, NdisReleaseSpinLock