Displaying 2 results from an estimated 2 matches for "vhost_null_misc".
2010 Nov 16
1
[PATCH RFC] tools/virtio: virtio_ring testing tool
...host_null_fops = {
+ .owner = THIS_MODULE,
+ .release = vhost_null_release,
+ .unlocked_ioctl = vhost_null_ioctl,
+#ifdef CONFIG_COMPAT
+ .compat_ioctl = vhost_null_compat_ioctl,
+#endif
+ .open = vhost_null_open,
+ .llseek = noop_llseek,
+};
+
+static struct miscdevice vhost_null_misc = {
+ MISC_DYNAMIC_MINOR,
+ "vhost-null",
+ &vhost_null_fops,
+};
+
+static int vhost_null_init(void)
+{
+ return misc_register(&vhost_null_misc);
+}
+module_init(vhost_null_init);
+
+static void vhost_null_exit(void)
+{
+ misc_deregister(&vhost_null_misc);
+}
+module_exit(vho...
2010 Nov 16
1
[PATCH RFC] tools/virtio: virtio_ring testing tool
...host_null_fops = {
+ .owner = THIS_MODULE,
+ .release = vhost_null_release,
+ .unlocked_ioctl = vhost_null_ioctl,
+#ifdef CONFIG_COMPAT
+ .compat_ioctl = vhost_null_compat_ioctl,
+#endif
+ .open = vhost_null_open,
+ .llseek = noop_llseek,
+};
+
+static struct miscdevice vhost_null_misc = {
+ MISC_DYNAMIC_MINOR,
+ "vhost-null",
+ &vhost_null_fops,
+};
+
+static int vhost_null_init(void)
+{
+ return misc_register(&vhost_null_misc);
+}
+module_init(vhost_null_init);
+
+static void vhost_null_exit(void)
+{
+ misc_deregister(&vhost_null_misc);
+}
+module_exit(vho...