Displaying 2 results from an estimated 2 matches for "vhost_vring_f".
Did you mean:
vhost_vring_
2009 Nov 17
0
No subject
...vhost_net_flush(n);
+}
+
+static long vhost_net_ioctl(struct file *f, unsigned int ioctl,
+ unsigned long arg)
+{
+ struct vhost_net *n =3D f->private_data;
+ void __user *argp =3D (void __user *)arg;
+ u32 __user *featurep =3D argp;
+ struct vhost_vring_file backend;
+ u64 features;
+ int r;
+ switch (ioctl) {
+ case VHOST_NET_SET_BACKEND:
+ r =3D copy_from_user(&backend, argp, sizeof backend);
+ if (r < 0)
+ return r;
+ return vhost_net_set_backend(n, bac...
2009 Nov 17
0
No subject
...vhost_net_flush(n);
+}
+
+static long vhost_net_ioctl(struct file *f, unsigned int ioctl,
+ unsigned long arg)
+{
+ struct vhost_net *n =3D f->private_data;
+ void __user *argp =3D (void __user *)arg;
+ u32 __user *featurep =3D argp;
+ struct vhost_vring_file backend;
+ u64 features;
+ int r;
+ switch (ioctl) {
+ case VHOST_NET_SET_BACKEND:
+ r =3D copy_from_user(&backend, argp, sizeof backend);
+ if (r < 0)
+ return r;
+ return vhost_net_set_backend(n, bac...