Поделиться через


NdisDprFreePacket (Compact 2013)

3/26/2014

NdisDprFreePacket releases a driver-allocated packet descriptor and returns it to the free list. Because Windows Embedded Compact does not support DPC IRQL, all NdisDprXXX functions perform identically to the non-DPR equivalent.

Syntax

VOID NdisDprFreePacket(
  PNDIS_PACKET Packet
);

Parameters

Return Value

None.

Remarks

Before calling NdisDprFreePacket, the driver either must call NdisFreeBuffer as many times as necessary to release all buffer descriptors chained to the packet, or it must call an NdisUnchainBufferAtXxx function as many times as necessary to save all pointers to buffer descriptors. Otherwise, memory associated with buffer descriptors in the chain remains unusable by the driver and by NDIS until the system is rebooted.

Requirements

Header

ndis.h

Library

ndis.lib

See Also

Reference

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