Thread (25 messages) 25 messages, 4 authors, 2016-01-28

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

From: Burakov, Anatoly <hidden>
Date: 2016-01-27 16:31:06

Hi Thomas,
quoted
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.

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