aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/virtio_ring.h
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2009-06-13 00:16:35 -0400
committerRusty Russell <rusty@rustcorp.com.au>2009-06-12 08:46:36 -0400
commit9499f5e7ed5224c40706f0cec6542a9916bc7606 (patch)
tree3e4e1b36d3d549ea356e88e6e44359a887c6ee01 /include/linux/virtio_ring.h
parentef688e151c00e5d529703be9a04fd506df8bc54e (diff)
virtio: add names to virtqueue struct, mapping from devices to queues.
Add a linked list of all virtqueues for a virtio device: this helps for debugging and is also needed for upcoming interface change. Also, add a "name" field for clearer debug messages. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'include/linux/virtio_ring.h')
-rw-r--r--include/linux/virtio_ring.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/virtio_ring.h b/include/linux/virtio_ring.h
index 71e03722fb59..166c519689de 100644
--- a/include/linux/virtio_ring.h
+++ b/include/linux/virtio_ring.h
@@ -119,7 +119,8 @@ struct virtqueue *vring_new_virtqueue(unsigned int num,
119 struct virtio_device *vdev, 119 struct virtio_device *vdev,
120 void *pages, 120 void *pages,
121 void (*notify)(struct virtqueue *vq), 121 void (*notify)(struct virtqueue *vq),
122 void (*callback)(struct virtqueue *vq)); 122 void (*callback)(struct virtqueue *vq),
123 const char *name);
123void vring_del_virtqueue(struct virtqueue *vq); 124void vring_del_virtqueue(struct virtqueue *vq);
124/* Filter out transport-specific feature bits. */ 125/* Filter out transport-specific feature bits. */
125void vring_transport_features(struct virtio_device *vdev); 126void vring_transport_features(struct virtio_device *vdev);