iPXE
Data Fields
vmbus_channel_operations Struct Reference

VMBus channel operations. More...

#include <vmbus.h>

Data Fields

int(* recv_control )(struct vmbus_device *vmdev, uint64_t xid, const void *data, size_t len)
 Handle received control packet. More...
 
int(* recv_data )(struct vmbus_device *vmdev, uint64_t xid, const void *data, size_t len, struct list_head *list)
 Handle received data packet. More...
 
int(* recv_completion )(struct vmbus_device *vmdev, uint64_t xid, const void *data, size_t len)
 Handle received completion packet. More...
 
int(* recv_cancellation )(struct vmbus_device *vmdev, uint64_t xid)
 Handle received cancellation packet. More...
 

Detailed Description

VMBus channel operations.

Definition at line 397 of file vmbus.h.

Field Documentation

◆ recv_control

int( * vmbus_channel_operations::recv_control) (struct vmbus_device *vmdev, uint64_t xid, const void *data, size_t len)

Handle received control packet.

Parameters
vmdevVMBus device
xidTransaction ID
dataData
lenLength of data
Return values
rcReturn status code

Definition at line 407 of file vmbus.h.

Referenced by vmbus_poll().

◆ recv_data

int( * vmbus_channel_operations::recv_data) (struct vmbus_device *vmdev, uint64_t xid, const void *data, size_t len, struct list_head *list)

Handle received data packet.

Parameters
vmdevVMBus device
xidTransaction ID
dataData
lenLength of data
listList of I/O buffers
Return values
rcReturn status code

This function takes ownership of the I/O buffer. It should eventually call vmbus_send_completion() to indicate to the host that the buffer can be reused.

Definition at line 423 of file vmbus.h.

Referenced by vmbus_poll().

◆ recv_completion

int( * vmbus_channel_operations::recv_completion) (struct vmbus_device *vmdev, uint64_t xid, const void *data, size_t len)

Handle received completion packet.

Parameters
vmdevVMBus device
xidTransaction ID
dataData
lenLength of data
Return values
rcReturn status code

Definition at line 435 of file vmbus.h.

Referenced by vmbus_poll().

◆ recv_cancellation

int( * vmbus_channel_operations::recv_cancellation) (struct vmbus_device *vmdev, uint64_t xid)

Handle received cancellation packet.

Parameters
vmdevVMBus device
xidTransaction ID
Return values
rcReturn status code

Definition at line 444 of file vmbus.h.

Referenced by vmbus_poll().


The documentation for this struct was generated from the following file: