Share via


NdisPacketPoolUsage (Windows Embedded CE 6.0)

1/6/2010

This function returns the number of packet descriptors currently allocated from a packet pool.

Syntax

UINT NdisPacketPoolUsage(
  NDIS_HANDLE PoolHandle
);

Parameters

Return Value

Returns the number of packet descriptors currently allocated from the given packet pool.

Remarks

Before allocating packet descriptors for a send or receive indication, an NDIS driver can call NdisPacketPoolUsage to determine whether it has enough spare packet descriptors available for the send/receive, particularly if the driver has allocated more than one packet pool.

An NDIS driver also can call this function to be sure that all descriptors have been returned to the given packet pool before it calls NdisFreePacketPool.

Requirements

Header ndis.h
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

NDIS Library Functions
NdisAllocatePacket
NdisAllocatePacketPool
NdisAllocatePacketPoolEx
NdisDprAllocatePacket
NdisDprAllocatePacketNonInterlocked
NdisFreePacketPool