共用方式為


NdisFreeBufferPool (Compact 2013)

3/26/2014

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

See Also

Reference

NDIS 5.x Legacy Functions
NdisAllocateBuffer
NdisAllocateBufferPool
NdisFreeBuffer
NdisReleaseSpinLock