NdisChainBufferAtFront

VOID
   NdisChainBufferAtFront(

       IN OUT PNDIS_PACKET Packet,
       IN OUT PNDIS_BUFFER Buffer
       );

NdisChainBufferAtFront links a given buffer descriptor to the head of the buffer-descriptor chain attached to a packet descriptor.

Parameters

Packet

Points to the packet descriptor.

Buffer

Points to the caller-supplied buffer descriptor to be added to the chain.

Comments

NdisChainBufferAtFront links the given buffer descriptor at the head of the chain for 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 NdisChainBufferAtFront can run at any IRQL but usually run at IRQL <= DISPATCH_LEVEL.

See Also

NdisChainBufferAtBack, NdisQueryPacket, NdisUnchainBufferAtFront