NdisFreePacketPool

This function releases a handle to a block of packet pool that was allocated with the NdisAllocatePacketPool function.

At a Glance

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

Syntax

VOID NdisFreePacketPool( IN NDIS_HANDLE PoolHandle );

Parameters

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

Remarks

This function frees the storage for the packet pool. Before calling this function, the driver must call the NdisFreePacket function as many times as necessary to release all packet descriptors that it has allocated with the NdisAllocatePacket function but not yet freed.

The driver must also release any spin lock it is holding before calling this function.

A driver that calls this function runs at IRQL <= DISPATCH_LEVEL.

See Also

NdisAllocatePacket, NdisAllocatePacketPool, NdisFreePacket, NdisReleaseSpinLock