EVT_VMB_CHANNEL_PROCESS_PACKET callback function

[Some information relates to pre-released product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.]

The EvtVmbChannelProcessPacket callback function is invoked when a packet arrives in the incoming ring buffer.

Syntax

EVT_VMB_CHANNEL_PROCESS_PACKET EvtVmbChannelProcessPacket;

void EvtVmbChannelProcessPacket(
  VMBCHANNEL Channel,
  VMBPACKETCOMPLETION Packet,
  PVOID Buffer,
  UINT32 BufferLength,
  UINT32 Flags
)
{...}

Parameters

Channel

The channel on which the packet arrives.

Packet

The completion context, which identifies this packet to Kernel Mode Client Library (KMCL) when the transaction can be retired.

Buffer

The packet which was sent by the opposite endpoint. This value does not contain the VMBus and KMCL headers.

BufferLength

The length of the Buffer parameter, in bytes.

Flags

Flags. Possible values include the following:

Value Meaning
VMBUS_CHANNEL_PROCESS_PACKET_FLAGS
0x1
The packet references external data. This data can be retrieved by using the VmbChannelPacketGetExternalData function.

Return Value

This callback function does not return a value.

Remarks

The client driver registers its implementation of this callback function by using the VmbChannelInitSetProcessPacketCallbacks function.

Every time you invoke this function, you must eventually call the VmbChannelPacketComplete function.

This callback function can be invoked at DISPATCH_LEVEL or lower, unless the channel has been configured to defer packet processing to a worker thread.

Requirements

   
Target Platform Windows
Header vmbuskernelmodeclientlibapi.h (include VmbusKernelModeClientLibApi.h)
IRQL <=DISPATCH_LEVEL

See Also

VmbChannelInitSetProcessPacketCallbacks

VmbChannelPacketComplete

VmbChannelPacketGetExternalData