1MLX4DV_QUERY_DEVICE(3) Library Functions Manual MLX4DV_QUERY_DEVICE(3)
2
3
4
6 mlx4dv_query_device - Query device capabilities specific to mlx4
7
9 #include <infiniband/mlx4dv.h>
10
11 int mlx4dv_query_device(struct ibv_context *ctx_in,
12 struct mlx4dv_context *attrs_out);
13
15 mlx4dv_query_device() Query mlx4 specific device information that is
16 usable via the direct verbs interface.
17
18 This function returns a version and compatibility mask. The version
19 represents the format of the internal hardware structures that mlx4dv.h
20 exposes. Future additions of new fields to the existing structures are
21 handled by the comp_mask field.
22
23 struct mlx4dv_context {
24 uint8_t version;
25 uint32_t max_inl_recv_sz; /* Maximum supported size of inline receive */
26 uint64_t comp_mask;
27 };
28
29
31 0 on success or the value of errno on failure (which indicates the
32 failure reason).
33
35 * Compatibility mask (comp_mask) is an in/out field.
36
38 mlx4dv(7), ibv_query_device(3)
39
41 Maor Gottlieb <maorg@mellanox.com>
42
43
44
451.0.0 2017-06-27 MLX4DV_QUERY_DEVICE(3)