]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0e0185770a3c6fb8d5fc776042055f59f2e8d073
tree0b84ec5a40acac9a9866c88cbf132ef41560c175
parent9dc633d2c8b52f07f5f2363fe5e6b4c9dc15cbe0
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