NdisFreePacketPool

VOID
    NdisFreePacketPool(

        IN NDIS_HANDLE  PoolHandle
        );

NdisFreePacketPool releases a handle to a block of packet pool that was allocated with NdisAllocatePacketPool.

Parameters

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

Comments

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

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

Callers of NdisFreePacketPool run at IRQL <= DISPATCH_LEVEL.

See Also

NdisAllocatePacket, NdisAllocatePacketPool, NdisFreePacket, NdisReleaseSpinLock