Thread (17 messages) flat view 17 messages, 7 authors, 2021-03-18

Re: [PATCH v2 03/14] vfio: Split creation of a vfio_device into init and register ops

From: Jason Gunthorpe <jgg@nvidia.com>
Date: 2021-03-16 23:13:13
Also in: kvm

On Tue, Mar 16, 2021 at 03:13:06PM -0600, Alex Williamson wrote:
quoted
quoted
+	void vfio_init_group_dev(struct vfio_device *device,
+				struct device *dev,
+				const struct vfio_device_ops *ops,
+				void *device_data);
+	int vfio_register_group_dev(struct vfio_device *device);
+	void vfio_unregister_group_dev(struct vfio_device *device);
+
+The driver should embed the vfio_device in its own structure and call
+vfio_init_group_dev() to pre-configure it before going to registration.  
s/it/that structure/ (I guess?)
Seems less clear actually, is the object of "that structure" the
"vfio_device" or "its own structure".  Phrasing somewhat suggests the
latter.  s/it/the vfio_device structure/ seems excessively verbose.  I
think "it" is probably sufficient here.  Thanks,
Right, it says directly above that vfio_init_group_dev() accepts a
vfio_device so I doubt anyone will be confused for long on what "it"
refers to.

I got the other language fixes thanks

Jason
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help