NdisFreeBufferPool (Windows Embedded CE 6.0)

1/6/2010

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

Syntax

VOID NdisFreeBufferPool(
  NDIS_HANDLE PoolHandle
);

Parameters

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

Return Value

None.

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.

Requirements

Header ndis.h
Library ndis.lib
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

NDIS Library Functions
NdisAllocateBuffer
NdisAllocateBufferPool
NdisFreeBuffer
NdisReleaseSpinLock