Partager via


NdisFreePacketPool 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.

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

Syntax

VOID NdisFreePacketPool(
  _In_ NDIS_HANDLE PoolHandle
);

Parameters

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

Return value

None

Remarks

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.

Requirements

Target platform

Universal

Version

Not supported for NDIS 6.0 drivers in Windows Vista. Use NdisFreeNetBufferPoolinstead. 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

NdisAllocatePacket

NdisAllocatePacketPool

NdisFreePacket

NdisReleaseSpinLock

 

 

Send comments about this topic to Microsoft