diff options
author | Heinz Graalfs <graalfs@linux.vnet.ibm.com> | 2013-10-29 09:40:19 +1030 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2013-10-29 11:28:17 +1030 |
commit | b3b32c94133621c9ba7e4c8f29ec7533f2f4d8ec (patch) | |
tree | d24065656240c707ec76d6932e2f00554dc52713 /include/linux/virtio.h | |
parent | 53c18c990644174935ca93e50d7ebd05e04cb9ee (diff) | |
download | linux-stable-b3b32c94133621c9ba7e4c8f29ec7533f2f4d8ec.tar.gz linux-stable-b3b32c94133621c9ba7e4c8f29ec7533f2f4d8ec.tar.bz2 linux-stable-b3b32c94133621c9ba7e4c8f29ec7533f2f4d8ec.zip |
virtio_ring: add new function virtqueue_is_broken()
Add new function virtqueue_is_broken(). Callers of virtqueue_get_buf()
should check for a broken queue.
Signed-off-by: Heinz Graalfs <graalfs@linux.vnet.ibm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'include/linux/virtio.h')
-rw-r--r-- | include/linux/virtio.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/virtio.h b/include/linux/virtio.h index 9b4de15fcb2f..e4abb84199be 100644 --- a/include/linux/virtio.h +++ b/include/linux/virtio.h @@ -73,6 +73,8 @@ void *virtqueue_detach_unused_buf(struct virtqueue *vq); unsigned int virtqueue_get_vring_size(struct virtqueue *vq); +bool virtqueue_is_broken(struct virtqueue *vq); + /** * virtio_device - representation of a device using virtio * @index: unique position on the virtio bus |