EXPORT_SYMBOL(mdev_set_drvdata);Extra whitespace
+
/* Specify the class for the mdev device, this must be called durings/implicity/implicitly/
- * create() callback.
- */
+ * create() callback explicitly or implicity through the helpers
+ * provided by each class. */Comment style. Thanks,
void mdev_set_class(struct mdev_device *mdev, u16 id)
{
WARN_ON(mdev->class_id);
@@ -55,6 +56,26 @@ void mdev_set_class(struct mdev_device *mdev, u16 id)
}
EXPORT_SYMBOL(mdev_set_class);
+/* Specify the mdev device to be a VFIO mdev device, and set VFIO
+ * device ops for it. This must be called from the create() callback
+ * for VFIO mdev device.
+ */
Alex