RDMA/core: Add UVERBS_ATTR_RAW_FD
authorJason Gunthorpe <jgg@nvidia.com>
Thu, 1 Sep 2022 14:20:54 +0000 (11:20 -0300)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 27 Sep 2022 13:15:24 +0000 (10:15 -0300)
commit015bda8abd3a6a77656e60b36d499c43a2c0f0a1
tree0b84ec5a40acac9a9866c88cbf132ef41560c175
parent4bf207d7a54d49637da94dbc00d2c025b74764d1
RDMA/core: Add UVERBS_ATTR_RAW_FD

This uses the same passing protocol as UVERBS_ATTR_FD (eg len = 0 data_s64
= fd), except that the FD is not required to be a uverbs object and the
core code does not covert the FD to an object handle automatically.

Access to the int fd is provided by uverbs_get_raw_fd().

Link: https://lore.kernel.org/r/2-v1-bd147097458e+ede-umem_dmabuf_jgg@nvidia.com
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/core/uverbs_ioctl.c
include/rdma/uverbs_ioctl.h