共用方式為


NdisDprAllocatePacket (Compact 2013)

3/26/2014

NdisDprAllocatePacket allocates and initializes a packet descriptor. Because Windows Embedded Compact does not support DPC IRQL, all NdisDprXXX functions perform identically to the non-DPR equivalent.

Syntax

VOID NdisDprAllocatePacket(
  PNDIS_STATUS Status,
  PNDIS_PACKET* Packet,
  NDIS_HANDLE PoolHandle
); 

Parameters

  • Status
    [out] Pointer to a caller-supplied variable in which this function returns the final status of the request.
  • Packet
    [out] Pointer to a caller-supplied variable in which this function returns a pointer to the allocated packet descriptor.

Return Value

The following table shows the return values for this function.

Value

Description

NDIS_STATUS_SUCCESS

The caller can use the packet descriptor returned at Packet.

NDIS_STATUS_RESOURCES

The free list for the packet pool currently has no available entries. A subsequent call to NdisDprFreePacket or NdisFreePacket will return the given entry to the free list. The variable at Packet is set to NULL.

Requirements

Header

ndis.h

Library

ndis.lib

See Also

Reference

NDIS 5.x Legacy Functions
MiniportDisableInterrupt
MiniportISR
MiniportSynchronizeISR
NdisAcquireSpinLock
NdisAllocatePacket
NdisAllocatePacketPool
NdisAllocateSpinLock
NdisDprFreePacket
NdisDprReleaseSpinLock
NdisFreePacket
NdisMSynchronizeWithInterrupt
NdisReleaseSpinLock