Re: [PATCH rdma-next v2 06/20] IB/uverbs: Add PTR_IN attributes that are allocated/copied automatically

2018-06-18 Thread Jason Gunthorpe
On Sun, Jun 17, 2018 at 12:59:52PM +0300, Leon Romanovsky wrote: > From: Matan Barak > > Adding UVERBS_ATTR_SPEC_F_ALLOC_AND_COPY flag to PTR_IN attributes. > By using this flag, the parse automatically allocates and copies the > user-space data. This data is accessible by using

[PATCH rdma-next v2 06/20] IB/uverbs: Add PTR_IN attributes that are allocated/copied automatically

2018-06-17 Thread Leon Romanovsky
From: Matan Barak Adding UVERBS_ATTR_SPEC_F_ALLOC_AND_COPY flag to PTR_IN attributes. By using this flag, the parse automatically allocates and copies the user-space data. This data is accessible by using uverbs_attr_get_len and uverbs_attr_get_alloced_ptr inline accessor functions from the