NdisPacketPoolUsage - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ndis.h

UINT NdisPacketPoolUsage(
  [in] NDIS_HANDLE PoolHandle
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ndis-ndispacketpoolusage)

NdisPacketPoolUsage (Windows CE 5.0)

Description

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.

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

Parameters

PoolHandle [in]

Specifies a handle returned by NdisAllocatePacketPool or NdisAllocatePacketPoolEx.

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.

OS Versions: Windows CE .NET 4.0 and later.

See also