virtio_ring.c (5b1bf7cb673ade0ab5c75f200dce911d9fb91c21) virtio_ring.c (b3b32c94133621c9ba7e4c8f29ec7533f2f4d8ec)
1/* Virtio ring implementation.
2 *
3 * Copyright 2007 Rusty Russell IBM Corporation
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.

--- 837 unchanged lines hidden (view full) ---

846{
847
848 struct vring_virtqueue *vq = to_vvq(_vq);
849
850 return vq->vring.num;
851}
852EXPORT_SYMBOL_GPL(virtqueue_get_vring_size);
853
1/* Virtio ring implementation.
2 *
3 * Copyright 2007 Rusty Russell IBM Corporation
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.

--- 837 unchanged lines hidden (view full) ---

846{
847
848 struct vring_virtqueue *vq = to_vvq(_vq);
849
850 return vq->vring.num;
851}
852EXPORT_SYMBOL_GPL(virtqueue_get_vring_size);
853
854bool virtqueue_is_broken(struct virtqueue *_vq)
855{
856 struct vring_virtqueue *vq = to_vvq(_vq);
857
858 return vq->broken;
859}
860EXPORT_SYMBOL_GPL(virtqueue_is_broken);
861
854MODULE_LICENSE("GPL");
862MODULE_LICENSE("GPL");