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.
int(* recv_data )(struct vmbus_device *vmdev, uint64_t xid, const void *data, size_t len, struct list_head *list)
 Handle received data packet.
int(* recv_completion )(struct vmbus_device *vmdev, uint64_t xid, const void *data, size_t len)
 Handle received completion packet.
int(* recv_cancellation )(struct vmbus_device *vmdev, uint64_t xid)
 Handle received cancellation packet.

Detailed Description

VMBus channel operations.

Definition at line 397 of file vmbus.h.


Field Documentation

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().

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().

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().

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: