mlx5dv_reg_dmabuf_mr(3) | mlx5dv_reg_dmabuf_mr(3) |
mlx5dv_reg_dmabuf_mr - Register a dma-buf based memory region (MR)
#include <infiniband/mlx5dv.h> struct ibv_mr *mlx5dv_reg_dmabuf_mr(struct ibv_pd *pd, uint64_t offset, size_t length, uint64_t iova, int fd, int access, int mlx5_access)
Register a dma-buf based memory region (MR), it follows the functionality of ibv_reg_dmabuf_mr() with the ability to supply specific mlx5 access flags.
The length of the MR.
MLX5DV_REG_DMABUF_ACCESS_DATA_DIRECT if set, this MR will be accessed through the Data Direct engine bonded with that RDMA device.
Upon success returns a pointer to the registered MR, or NULL if the request fails, in that case the value of errno indicates the failure reason.
ibv_reg_dmabuf_mr(3), mlx5dv_get_data_direct_sysfs_path(3)
Yishai Hadas yishaih@nvidia.com