OSDN Git Service

RDMA/uverbs: Add ioctl command to get a device context
authorJason Gunthorpe <jgg@mellanox.com>
Wed, 8 Jan 2020 18:05:34 +0000 (20:05 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 16 Jan 2020 19:55:45 +0000 (15:55 -0400)
commita1123418ba1078037d9fecb72573ff7222dfe201
treea4e50f11d441719574089c2d0bd7e0d5c3aefde7
parentda57db25677f8566a354b0d0e4973a0fdcabcf84
RDMA/uverbs: Add ioctl command to get a device context

Allow future extensions of the get context command through the uverbs
ioctl kabi.

Unlike the uverbs version this does not return an async_fd as well, that
has to be done with another command.

Link: https://lore.kernel.org/r/1578506740-22188-5-git-send-email-yishaih@mellanox.com
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/uverbs.h
drivers/infiniband/core/uverbs_cmd.c
drivers/infiniband/core/uverbs_main.c
drivers/infiniband/core/uverbs_std_types_async_fd.c
drivers/infiniband/core/uverbs_std_types_device.c
include/uapi/rdma/ib_user_ioctl_cmds.h