diff options
author | 2020-06-30 12:39:12 +0300 | |
---|---|---|
committer | 2020-07-06 19:50:33 -0300 | |
commit | 1c8fb1ea5a1dbd2159e78fa580aaffb001794cfa (patch) | |
tree | 2a4741948790bd47d7f46dec18e78a74651eedd3 /include/rdma | |
parent | IB/uverbs: Set IOVA on IB MR in uverbs layer (diff) | |
download | linux-1c8fb1ea5a1dbd2159e78fa580aaffb001794cfa.tar.gz linux-1c8fb1ea5a1dbd2159e78fa580aaffb001794cfa.tar.bz2 linux-1c8fb1ea5a1dbd2159e78fa580aaffb001794cfa.zip |
IB/uverbs: Expose UAPI to query ucontext
Expose UAPI to query ucontext, this will let user space application that
didn't allocate the ucontext but has access to by owning the matching
command FD to retrieve the ucontext information.
Link: https://lore.kernel.org/r/20200630093916.332097-4-leon@kernel.org
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'include/rdma')
-rw-r--r-- | include/rdma/ib_verbs.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h index 20c801730fed..6c72bb194148 100644 --- a/include/rdma/ib_verbs.h +++ b/include/rdma/ib_verbs.h @@ -2645,6 +2645,10 @@ struct ib_device_ops { */ int (*fill_stat_mr_entry)(struct sk_buff *msg, struct ib_mr *ibmr); + /* query driver for its ucontext properties */ + int (*query_ucontext)(struct ib_ucontext *context, + struct uverbs_attr_bundle *attrs); + DECLARE_RDMA_OBJ_SIZE(ib_ah); DECLARE_RDMA_OBJ_SIZE(ib_cq); DECLARE_RDMA_OBJ_SIZE(ib_pd); |