共用方式為


NdisFreePacketPool (Compact 2013)

3/26/2014

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

Syntax

VOID NdisFreePacketPool(
  NDIS_HANDLE PoolHandle
);

Parameters

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

Return Value

None.

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 that it is holding before calling this function.

Requirements

Header

ndis.h

Library

ndis.lib

See Also

Reference

NDIS 5.x Legacy Functions
NdisAllocatePacket
NdisAllocatePacketPool
NdisFreePacket
NdisReleaseSpinLock