search for: vhost_null_ioctl

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

2010 Nov 16
1
[PATCH RFC] tools/virtio: virtio_ring testing tool
...s & (1 << VHOST_F_LOG_ALL)) && + !vhost_log_access_ok(&n->dev)) { + mutex_unlock(&n->dev.mutex); + return -EFAULT; + } + n->dev.acked_features = features; + smp_wmb(); + vhost_null_flush(n); + mutex_unlock(&n->dev.mutex); + return 0; +} + +static long vhost_null_ioctl(struct file *f, unsigned int ioctl, + unsigned long arg) +{ + struct vhost_null *n = f->private_data; + void __user *argp = (void __user *)arg; + u64 __user *featurep = argp; + int test; + u64 features; + int r; + switch (ioctl) { + case VHOST_NULL_RUN: + if (copy_from_user(&test, ar...
2010 Nov 16
1
[PATCH RFC] tools/virtio: virtio_ring testing tool
...s & (1 << VHOST_F_LOG_ALL)) && + !vhost_log_access_ok(&n->dev)) { + mutex_unlock(&n->dev.mutex); + return -EFAULT; + } + n->dev.acked_features = features; + smp_wmb(); + vhost_null_flush(n); + mutex_unlock(&n->dev.mutex); + return 0; +} + +static long vhost_null_ioctl(struct file *f, unsigned int ioctl, + unsigned long arg) +{ + struct vhost_null *n = f->private_data; + void __user *argp = (void __user *)arg; + u64 __user *featurep = argp; + int test; + u64 features; + int r; + switch (ioctl) { + case VHOST_NULL_RUN: + if (copy_from_user(&test, ar...