mlx5dv_open_device - Man Page

Open an RDMA device context for the mlx5 provider

Synopsis

#include <infiniband/mlx5dv.h>

struct ibv_context *
mlx5dv_open_device(struct ibv_device *device, struct mlx5dv_context_attr *attr);

Description

Open an RDMA device context with specific mlx5 provider attributes.

Arguments

device

RDMA device to open.

attr argument

struct mlx5dv_context_attr {
        uint32_t flags;
        uint64_t comp_mask;
};
flags
A bitwise OR of the various values described below.

*MLX5DV_CONTEXT_FLAGS_DEVX*:
Allocate a DEVX context
comp_mask
Bitmask specifying what fields in the structure are valid

Return Value

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

See Also

ibv_open_device(3)

Author

Yishai Hadas yishaih@mellanox.com\c

Referenced By

mlx5dv_alloc_var(3), mlx5dv_create_mkey(3), mlx5dv_devx_alloc_uar(3), mlx5dv_devx_create_cmd_comp(3), mlx5dv_devx_create_event_channel(3), mlx5dv_devx_get_event(3), mlx5dv_devx_obj_create(3), mlx5dv_devx_qp_modify(3), mlx5dv_devx_query_eqn(3), mlx5dv_devx_subscribe_devx_event(3), mlx5dv_devx_umem_reg(3), mlx5dv_dr_flow(3), mlx5dv_mkey_check(3), mlx5dv_pp_alloc(3), mlx5dv_qp_cancel_posted_send_wrs(3), mlx5dv_wr_mkey_configure(3), mlx5dv_wr_set_mkey_sig_block(3).