NdisUnchainBufferAtBack

VOID
NdisUnchainBufferAtBack(

IN OUT PNDIS_PACKET Packet,
OUT PNDIS_BUFFER *Buffer
);

NdisUnchainBufferAtBack removes the buffer descriptor at the end of the chain of buffer descriptors for a given packet.

Parameters

Packet

Points to the packet descriptor.

Buffer

Points to a caller-supplied variable in which this function returns a pointer to the removed buffer descriptor. If no buffer is chained to the given packet, this variable is set to NULL.

Comments

NdisUnchainBufferAtBack returns a pointer to the buffer descriptor it removed from the buffer descriptor chain of the given packet.

It also resets the valid counts for the packet to FALSE, thereby forcing NdisQueryPacket to recalculate information about the given packet if it is called subsequently with that packet.

Callers of NdisUnchainBufferAtBack can run at any IRQL.

See Also

NdisChainBufferAtBack, NdisQueryPacket, NdisUnchainBufferAtFront