NdisFreeBufferPool function

Note   NDIS 5. x has been deprecated and is superseded by NDIS 6. x. For new NDIS driver development, see Network Drivers Starting with Windows Vista. For information about porting NDIS 5. x drivers to NDIS 6. x, see Porting NDIS 5.x Drivers to NDIS 6.0.

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

Syntax

VOID NdisFreeBufferPool(
  _In_ NDIS_HANDLE PoolHandle
);

Parameters

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

Return value

None

Remarks

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.

Requirements

Target platform

Universal

Version

Not supported for NDIS 6.0 drivers in Windows Vista. Supported for NDIS 5.1 drivers in Windows Vista and Windows XP.

Header

Ndis.h (include Ndis.h)

Library

Ndis.lib

IRQL

<= DISPATCH_LEVEL

See also

NdisAllocateBuffer

NdisAllocateBufferPool

NdisFreeBuffer

NdisReleaseSpinLock

 

 

Send comments about this topic to Microsoft