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.
- Buffer [in]
Pointer to a buffer descriptor.
NdisFreeBuffer returns the given buffer descriptor to the free list.
A driver must not call NdisFreePacket with a packet to which buffers are chained, because doing this causes a memory leak. Before it releases such a packet, either the driver should call NdisFreeBuffer as many times as necessary to release all buffer descriptors chained to the packet, or it should call either NdisUnchainBufferAtXxx function as many times as necessary to save the pointers to all chained buffer descriptors.
|Not supported for NDIS 6.0 drivers in Windows Vista. Use NdisFreeMdl instead. Supported for NDIS 5.1 drivers in Windows Vista and Windows XP.|