mlx5dv_dev...msi_vector(3)
π NAME π
okay so bestie, this is the mlx5dv_dev...msi_vector(3) page from the mlx5 Programmerβs Manual, and itβs giving two functions with main character energy:
mlx5dv_devx_alloc_msi_vectorβ allocate an msi vector to be used for creating an EQ.mlx5dv_devx_free_msi_vectorβ release an msi vector.
periodt. π
π SYNOPSIS π
#include <infiniband/mlx5dv.h>
struct mlx5dv_devx_msi_vector *
mlx5dv_devx_alloc_msi_vector(struct ibv_context *ibctx);
int mlx5dv_devx_free_msi_vector(struct mlx5dv_devx_msi_vector *msi);
β¨ DESCRIPTION β¨
So basically: allocate or free an msi vector to be used for creating an EQ. π
The allocate API exposes an mlx5dv_devx_msi_vector object, which includes an msi vector and a fd. The vector can be used as the eqc.intr field when creating an EQ, while the fd (created as non-blocking) can be polled to see once there is some data on that EQ. iconic, honestly. π¦
π ARGUMENTS π
ibctxβ RDMA device context to create the action on.msiβ the msi vector object to work on.
π msi_vector π
struct mlx5dv_devx_msi_vector {
int vector;
int fd;
};
vectorβ the vector to be used when creating the EQ over the device specification.fdβ the FD that will be used for polling.
π RETURN VALUE π
Upon success, mlx5dv_devx_alloc_msi_vector will return a new struct mlx5dv_devx_msi_vector; on error, NULL will be returned and errno will be set. slay when it works, π when it doesnβt.
Upon success, mlx5dv_devx_free_msi_vector will return 0; on error, errno will be returned.
π AUTHOR π
Mark Zhang <markzhang@nvidia.com>
xoxo, from the mlx5 source/version and the 2022-01-12 date ππ«Άβ¨
π¦ where this page comes from
- alpine 3.24: rdma-core-doc 61.0-r0 Β· GPL-2.0-only OR BSD-2-Clause
- centos-stream 10: rdma-core-devel 62.0-3.el10 Β· GPLv2 or BSD
- centos-stream 9: rdma-core-devel 61.0-3.el9 Β· GPLv2 or BSD
- centos-stream 9: rdma-core-devel 61.0-3.el9 Β· GPLv2 or BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms