NdisPacketPoolUsage function (ndis.h)
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.
Syntax
UINT NdisPacketPoolUsage(
[in] NDIS_HANDLE PoolHandle
);
Parameters
[in] PoolHandle
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.
Requirements
Requirement | Value |
---|---|
Header | ndis.h |
IRQL | IRQL <= DISPATCH_LEVEL |