IB/uverbs: Expose UAPI to query ucontext
authorYishai Hadas <yishaih@mellanox.com>
Tue, 30 Jun 2020 09:39:12 +0000 (12:39 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 6 Jul 2020 22:50:33 +0000 (19:50 -0300)
commit1c8fb1ea5a1dbd2159e78fa580aaffb001794cfa
tree2a4741948790bd47d7f46dec18e78a74651eedd3
parent04c0a5fcfcf65aade2fb238b6336445f1a99b646
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>
drivers/infiniband/core/device.c
drivers/infiniband/core/uverbs_std_types_device.c
include/rdma/ib_verbs.h
include/uapi/rdma/ib_user_ioctl_cmds.h