1mlx5dv_open_device(3) mlx5dv_open_device(3)
2
3
4
6 mlx5dv_open_device - Open an RDMA device context for the mlx5 provider
7
9 #include <infiniband/mlx5dv.h>
10
11 struct ibv_context *
12 mlx5dv_open_device(struct ibv_device *device, struct mlx5dv_context_attr *attr);
13
15 Open an RDMA device context with specific mlx5 provider attributes.
16
18 device RDMA device to open.
19
20 attr argument
21 struct mlx5dv_context_attr {
22 uint32_t flags;
23 uint64_t comp_mask;
24 };
25
26 flags
27
28 A bitwise OR of the various values described below.
29
30 *MLX5DV_CONTEXT_FLAGS_DEVX*:
31 Allocate a DEVX context
32
33 comp_mask
34
35 Bitmask specifying what fields in the structure are valid
36
38 Returns a pointer to the allocated device context, or NULL if the re‐
39 quest fails.
40
42 ibv_open_device(3)
43
45 Yishai Hadas <yishaih@mellanox.com>
46
47
48
49 mlx5dv_open_device(3)