mlx5dv_open_device
Open an RDMA device context for the mlx5 provider
- Provided by: libibverbs-dev (Version: 64.0-1ubuntu1)
- Source: rdma-core
- Report a bug
Open an RDMA device context for the mlx5 provider
#include <infiniband/mlx5dv.h>
struct ibv_context *
mlx5dv_open_device(struct ibv_device *device, struct mlx5dv_context_attr *attr);
Open an RDMA device context with specific mlx5 provider attributes.
attr
struct mlx5dv_context_attr {
uint32_t flags;
uint64_t comp_mask;
struct ibv_fd_arr *fds;
};
A bitwise OR of the various values described below.
*MLX5DV_CONTEXT_FLAGS_DEVX*:
Allocate a DEVX context
Bitmask specifying what fields in the structure are valid
*MLX5DV_CONTEXT_ATTR_MASK_FD_ARRAY*:
Valid value in *fds*
Used to pass a file descriptor array.
struct ibv_fd_arr {
int *arr;
uint32_t count;
};
Pointer to the file descriptor array.
Number of elements in the array.
Returns a pointer to the allocated device context, or NULL if the request fails.
Yishai Hadas yishaih@mellanox.com