search for: viotest_major

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

2009 Jun 19
2
[PATCH/RFC] virtio_test: A module for testing virtio via userspace
...": " fmt + +#include <linux/err.h> +#include <linux/fs.h> +#include <linux/list.h> +#include <linux/sched.h> +#include <linux/uaccess.h> +#include <linux/virtio.h> +#include <linux/virtio_test.h> +#include <linux/virtio_ring.h> + +static u32 viotest_major = VIOTEST_MAJOR; +static struct class *viotest_class; +static LIST_HEAD(viotest_list); +static spinlock_t viotest_list_lock = SPIN_LOCK_UNLOCKED; + +static void free_kvec(struct kvec *kiov, u32 index) +{ + u32 i; + + for (i = 0; i < index; i++) + kfree(kiov[i].iov_base); + + kfree(kiov); +} + +...
2009 Jun 19
2
[PATCH/RFC] virtio_test: A module for testing virtio via userspace
...": " fmt + +#include <linux/err.h> +#include <linux/fs.h> +#include <linux/list.h> +#include <linux/sched.h> +#include <linux/uaccess.h> +#include <linux/virtio.h> +#include <linux/virtio_test.h> +#include <linux/virtio_ring.h> + +static u32 viotest_major = VIOTEST_MAJOR; +static struct class *viotest_class; +static LIST_HEAD(viotest_list); +static spinlock_t viotest_list_lock = SPIN_LOCK_UNLOCKED; + +static void free_kvec(struct kvec *kiov, u32 index) +{ + u32 i; + + for (i = 0; i < index; i++) + kfree(kiov[i].iov_base); + + kfree(kiov); +} + +...