1mlx5dv_devx_alloc_msi_vectorm(l3x)5 Programmer’s Manmulaxl5dv_devx_alloc_msi_vector(3)
2
3
4
6 mlx5dv_devx_alloc_msi_vector - Allocate an msi vector to be used for
7 creating an EQ.
8
9 mlx5dv_devx_free_msi_vector - Release an msi vector.
10
12 #include <infiniband/mlx5dv.h>
13
14 struct mlx5dv_devx_msi_vector *
15 mlx5dv_devx_alloc_msi_vector(struct ibv_context *ibctx);
16
17 int mlx5dv_devx_free_msi_vector(struct mlx5dv_devx_msi_vector *msi);
18
20 Allocate or free an msi vector to be used for creating an EQ.
21
22 The allocate API exposes a mlx5dv_devx_msi_vector object, which in‐
23 cludes an msi vector and a fd. The vector can be used as the “eqc.in‐
24 tr” field when creating an EQ, while the fd (created as non-blocking)
25 can be polled to see once there is some data on that EQ.
26
28 ibctx RDMA device context to create the action on.
29
30 msi The msi vector object to work on.
31
32 msi_vector
33 struct mlx5dv_devx_msi_vector {
34 int vector;
35 int fd;
36 };
37
38 vector The vector to be used when creating the EQ over the device spec‐
39 ification.
40
41 fd The FD that will be used for polling.
42
44 Upon success mlx5dv_devx_alloc_msi_vector will return a new struct
45 mlx5dv_devx_msi_vector; On error NULL will be returned and errno will
46 be set.
47
48 Upon success mlx5dv_devx_free_msi_vector will return 0, on error errno
49 will be returned.
50
52 Mark Zhang <markzhang@nvidia.com>
53
54
55
56mlx5 2022-01-12 mlx5dv_devx_alloc_msi_vector(3)