search for: vq_list

Displaying 2 results from an estimated 2 matches for "vq_list".

Did you mean: va_list
2009 Jun 19
2
[PATCH/RFC] virtio_test: A module for testing virtio via userspace
...t;in + kaddbuf->out); + if (err) { + free_kvec(kaddbuf->kdata, kaddbuf->in + kaddbuf->out); + return err; + } + + return 0; +} + +static struct viotest_vq *get_virtqueue(struct viotest_dev *vtest, u32 vq_index) +{ + struct viotest_vq *vtvq; + + list_for_each_entry(vtvq, &vtest->vq_list, list) + if (vtvq->index == vq_index) + return vtvq; + + return ERR_PTR(-ENOENT); +} + +static int do_add_buf(struct viotest_dev *vtest, + struct viotest_kaddbuf *kaddbuf) +{ + int err; + struct viotest_vq *vtvq; + + vtvq = get_virtqueue(vtest, kaddbuf->vq_index); + if (IS_ERR(vtv...
2009 Jun 19
2
[PATCH/RFC] virtio_test: A module for testing virtio via userspace
...t;in + kaddbuf->out); + if (err) { + free_kvec(kaddbuf->kdata, kaddbuf->in + kaddbuf->out); + return err; + } + + return 0; +} + +static struct viotest_vq *get_virtqueue(struct viotest_dev *vtest, u32 vq_index) +{ + struct viotest_vq *vtvq; + + list_for_each_entry(vtvq, &vtest->vq_list, list) + if (vtvq->index == vq_index) + return vtvq; + + return ERR_PTR(-ENOENT); +} + +static int do_add_buf(struct viotest_dev *vtest, + struct viotest_kaddbuf *kaddbuf) +{ + int err; + struct viotest_vq *vtvq; + + vtvq = get_virtqueue(vtest, kaddbuf->vq_index); + if (IS_ERR(vtv...