mlx5dv_open_device(3) mlx5dv_open_device(3)

mlx5dv_open_device - 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.

RDMA device to open.

attr argument

struct mlx5dv_context_attr {

uint32_t flags;
uint64_t comp_mask; };
A bitwise OR of the various values described below.
Allocate a DEVX context
Bitmask specifying what fields in the structure are valid

Returns a pointer to the allocated device context, or NULL if the request fails.


Yishai Hadas <>