Previous Next

NdisFreePacketPool

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

VOID
  NdisFreePacketPool(
    IN NDIS_HANDLE  PoolHandle
    );

Parameters

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

Headers

Declared in Ndis.h. Include Ndis.h.

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.

Callers of NdisFreePacketPool run at IRQL <= DISPATCH_LEVEL.

See Also

NdisAllocatePacket, NdisAllocatePacketPool, NdisFreePacket, NdisReleaseSpinLock