diff options
author | Yishai Hadas <yishaih@mellanox.com> | 2018-06-17 12:59:59 +0300 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-06-19 19:53:02 +0300 |
commit | 7dc08dcfc8c86cb4457e383734ff6844ddaff876 (patch) | |
tree | d7ca5c177c38c05e4ff48801f1a1d461f5b498d7 /include/rdma | |
parent | e502a864c3526aa93b983d4b14e9615b3da430e6 (diff) | |
download | linux-7dc08dcfc8c86cb4457e383734ff6844ddaff876.tar.xz |
IB/core: Expose ib_ucontext from a given ib_uverbs_file
Drivers that use the IOCTL API may have the ib_uverbs_file and need a
way to get the related ib_ucontext from it, this is enabled by this
patch.
Downstream patches from this series will use it.
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'include/rdma')
-rw-r--r-- | include/rdma/ib_verbs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h index dc5d262739e5..995d517c0a76 100644 --- a/include/rdma/ib_verbs.h +++ b/include/rdma/ib_verbs.h @@ -4120,4 +4120,6 @@ ib_get_vector_affinity(struct ib_device *device, int comp_vector) */ void rdma_roce_rescan_device(struct ib_device *ibdev); +struct ib_ucontext *ib_uverbs_get_ucontext(struct ib_uverbs_file *ufile); + #endif /* IB_VERBS_H */ |