RDMA/uverbs: Add a method to introspect handles in a context
authorJason Gunthorpe <jgg@mellanox.com>
Fri, 30 Nov 2018 11:16:47 +0000 (13:16 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 18 Dec 2018 21:54:54 +0000 (14:54 -0700)
commit149d3845f4a548dbc83932fab3491aeb0b070b3a
treefbee5b898db817eb897e12224361f62a65b9f834
parent350b4c8ac1b4c07909ab7f8ad4303fff2505ab7c
RDMA/uverbs: Add a method to introspect handles in a context

Introduce a helper function gather_objects_handle() to copy object handles
under a spin lock.

Expose these objects handles via the uverbs ioctl interface.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
drivers/infiniband/core/uverbs_std_types_device.c
include/uapi/rdma/ib_user_ioctl_cmds.h