On Wed, Oct 13, 2021 at 6:09 PM Michael S. Tsirkin <mst@xxxxxxxxxx> wrote: > > On Tue, Oct 12, 2021 at 02:52:17PM +0800, Jason Wang wrote: > > This patch adds doc for validate() method. > > > > Signed-off-by: Jason Wang <jasowang@xxxxxxxxxx> > > And maybe document __virtio_clear_bit : it says > "for use by transports" and now it's also legal in the > validate callback. Ok, let me do that in v3. Thanks > > > --- > > include/linux/virtio.h | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/include/linux/virtio.h b/include/linux/virtio.h > > index 41edbc01ffa4..0cd8685aeba4 100644 > > --- a/include/linux/virtio.h > > +++ b/include/linux/virtio.h > > @@ -152,6 +152,7 @@ size_t virtio_max_dma_size(struct virtio_device *vdev); > > * @feature_table_size: number of entries in the feature table array. > > * @feature_table_legacy: same as feature_table but when working in legacy mode. > > * @feature_table_size_legacy: number of entries in feature table legacy array. > > + * @validate: optional function to do early checks > > * @probe: the function to call when a device is found. Returns 0 or -errno. > > * @scan: optional function to call after successful probe; intended > > * for virtio-scsi to invoke a scan. > > -- > > 2.25.1 > _______________________________________________ Virtualization mailing list Virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linuxfoundation.org/mailman/listinfo/virtualization