OSDN Git Service

IB/verbs: Add helper function rdma_udata_to_drv_context
authorShamir Rabinovitch <shamir.rabinovitch@oracle.com>
Thu, 7 Feb 2019 16:44:48 +0000 (18:44 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 15 Feb 2019 18:17:25 +0000 (11:17 -0700)
commit730623f4a56fa42d4559715ff2f4a5c32b3ae8bf
treed5c452992681256bf84b2cb232f3614e376d3fd6
parent3d9dfd060391928bd615db62ecddea5e1255edfd
IB/verbs: Add helper function rdma_udata_to_drv_context

Helper function to get driver's context out of ib_udata wrapped in
uverbs_attr_bundle for user objects or NULL for kernel objects.

Signed-off-by: Shamir Rabinovitch <shamir.rabinovitch@oracle.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
include/rdma/uverbs_ioctl.h