On Fri, Oct 28, 2016 at 5:46 PM, Leon Romanovsky <leonro@xxxxxxxxxxxx> wrote: > On Fri, Oct 28, 2016 at 08:37:25AM -0700, Christoph Hellwig wrote: >> On Fri, Oct 28, 2016 at 06:33:06PM +0300, Leon Romanovsky wrote: >> > Just to summarize, to be sure that I understood you correctly. >> > >> > --------- -------------------- >> > | write | -> | conversion logic | --- >> > --------- -------------------- | ---------------------- >> > -----> | internal interface | >> > --------- | ---------------------- >> > | ioctl | --------------------------- >> > --------- >> > >> > Am I right? >> >> Yes, as long as the write and ioctl boxes do the copy_{from,to}_user. > > Thanks > If we accept the limitations here (i.e - all commands attributes come either from kernel or from user, but you can't mix them - that's mean the write comparability layer either needs to copy all attributes or use a direct mapping for all of them), I could just either break ib_uverbs_cmd_verbs to a a few functions or just pass a callback of boxing the descriptors copy. >> -- >> 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 -- 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