Displaying 2 results from an estimated 2 matches for "vhost_null_run".
2010 Nov 16
1
[PATCH RFC] tools/virtio: virtio_ring testing tool
...*n = f->private_data;
+ void *private;
+
+ vhost_null_stop(n, &private);
+ vhost_null_flush(n);
+ vhost_dev_cleanup(&n->dev);
+ /* We do an extra flush before freeing memory,
+ * since jobs can re-queue themselves. */
+ vhost_null_flush(n);
+ kfree(n);
+ return 0;
+}
+
+static long vhost_null_run(struct vhost_null *n, int test)
+{
+ void *priv, *oldpriv;
+ struct vhost_virtqueue *vq;
+ int r, index;
+
+ if (test < 0 || test > 1)
+ return -EINVAL;
+
+ mutex_lock(&n->dev.mutex);
+ r = vhost_dev_check_owner(&n->dev);
+ if (r)
+ goto err;
+
+ for (index = 0; index < n-&...
2010 Nov 16
1
[PATCH RFC] tools/virtio: virtio_ring testing tool
...*n = f->private_data;
+ void *private;
+
+ vhost_null_stop(n, &private);
+ vhost_null_flush(n);
+ vhost_dev_cleanup(&n->dev);
+ /* We do an extra flush before freeing memory,
+ * since jobs can re-queue themselves. */
+ vhost_null_flush(n);
+ kfree(n);
+ return 0;
+}
+
+static long vhost_null_run(struct vhost_null *n, int test)
+{
+ void *priv, *oldpriv;
+ struct vhost_virtqueue *vq;
+ int r, index;
+
+ if (test < 0 || test > 1)
+ return -EINVAL;
+
+ mutex_lock(&n->dev.mutex);
+ r = vhost_dev_check_owner(&n->dev);
+ if (r)
+ goto err;
+
+ for (index = 0; index < n-&...