[dpdk-dev] [PATCH v4] vfio: Support for no-IOMMU mode

Burakov, Anatoly anatoly.burakov at intel.com
Wed Jan 27 17:30:21 CET 2016

Hi Thomas,

> > Is it possible (is it better) to declare these functions with vfio_dma_func_t?
> Yeah, sure. Or maybe the other way around - maybe we could do away with
> the typedef. I'll go for the former though.

No, we can't declare the functions with a function pointer. At least I don't see any obvious way to do that without incurring multiple declarations compile error. So I'll leave it as forward declarations. Of course, the other alternative is to put the array below the functions and make them static, to avoid forward declarations, but I think it's much clearer the way it is now.


More information about the dev mailing list