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.
NdisDprAllocatePacket allocates and initializes a packet descriptor when the caller is running at IRQL = DISPATCH_LEVEL.
VOID NdisDprAllocatePacket( _Out_ PNDIS_STATUS Status, _Out_ PNDIS_PACKET *Packet, _In_ NDIS_HANDLE PoolHandle );
Pointer to a caller-supplied variable in which this function returns the final status of the request, which can be one of the following:
The caller can use the packet descriptor returned at Packet.
The free list for the packet pool currently has no available entries. The variable at Packet is set to NULL.
Pointer to a caller-supplied variable in which this function returns a pointer to the allocated packet descriptor.
Specifies the handle returned by a preceding call to NdisAllocatePacketPool.
NdisDprAllocatePacket runs slightly faster than NdisAllocatePacket because NDIS can acquire the spin lock it uses to synchronize access to the packet pool without having to raise IRQL.
A caller of NdisDprAllocatePacket must be running at IRQL = DISPATCH_LEVEL. Otherwise, the driver should call NdisAllocatePacket.
Not supported for NDIS 6.0 drivers in Windows Vista. Supported for NDIS 5.1 drivers in Windows Vista and Windows XP.
|Ndis.h (include Ndis.h)|
DISPATCH_LEVEL (See Remarks section)