|
Barrelfish
|
Collaboration diagram for virtqueue_setup:Data Fields | |
| char | name [VIRTQUEUE_NAME_SIZE] |
| the name of the queue | |
| struct virtio_device * | device |
| device this queue belongs to | |
| uint16_t | queue_id |
| the id of this queue | |
| uint16_t | vring_ndesc |
| size of the vring | |
| lvaddr_t | vring_align |
| alignment of the vring | |
| uint16_t | max_indirect |
| maximum indirect descriptors | |
| uint8_t | buffer_bits |
| when non zero, will allocate buffer | |
| uint8_t | header_bits |
| allocate additional space for headers | |
| uint8_t | auto_add |
| adds this virtqueue to the device | |
| void * | intr_arg |
| argument for the interrupt handler | |
| virtq_intr_hander_t | intr_handler |
| interrupt handler function | |
this structure holds necessary data to allocate a new virtqueue
XXX: this may be a bit revised and split into two different structs one for the host and one for the guest
1.8.11