> Perhaps aided by a macro so we get high uniformity: > > #define DECLARE_DRIVER_UDATA(struct_driver, struct_common) > struct user # struct_driver { > struct struct_common ibv_resp; > struct struct_driver udata; > }; > > Where mlx4_alloc_ucontext_resp_v3 comes from the uapi header, and is not > inlined, so each driver gets an 'abi wrapper' header that just builds all these > structs. The idea looks good to me. But still, I'm missing something - in order for libraries and the kernel to use the same headers they should reside in the same repository. Is that the long-term goal? And wouldn't that be mixing user/kernel spaces? Thanks, Ram -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html