NAME | SYNOPSIS | DESCRIPTION | RETURN VALUE | NOTES | SEE ALSO | AUTHORS | COLOPHON |
|
|
MLX4DV_QUERY_DEVICE(3) Library Functions Manual MLX4DV_QUERY_DEVICE(3)
mlx4dv_query_device - Query device capabilities specific to mlx4
#include <infiniband/mlx4dv.h> int mlx4dv_query_device(struct ibv_context *ctx_in, struct mlx4dv_context *attrs_out);
mlx4dv_query_device() Query mlx4 specific device information that is usable via the direct verbs interface. This function returns a version and compatibility mask. The version represents the format of the internal hardware structures that mlx4dv.h exposes. Future additions of new fields to the existing structures are handled by the comp_mask field. struct mlx4dv_context { uint8_t version; uint32_t max_inl_recv_sz; /* Maximum supported size of inline receive */ uint64_t comp_mask; };
0 on success or the value of errno on failure (which indicates the failure reason).
* Compatibility mask (comp_mask) is an in/out field.
mlx4dv(7), ibv_query_device(3)
Maor Gottlieb <maorg@mellanox.com>
This page is part of the rdma-core (RDMA Core Userspace Libraries
and Daemons) project. Information about the project can be found
at ⟨https://github.com/linux-rdma/rdma-core⟩. If you have a bug
report for this manual page, send it to
linux-rdma@vger.kernel.org. This page was obtained from the
project's upstream Git repository
⟨https://github.com/linux-rdma/rdma-core.git⟩ on 2024-06-14. (At
that time, the date of the most recent commit that was found in
the repository was 2024-06-10.) If you discover any rendering
problems in this HTML version of the page, or you believe there
is a better or more up-to-date source for the page, or you have
corrections or improvements to the information in this COLOPHON
(which is not part of the original manual page), send a mail to
man-pages@man7.org
1.0.0 2017-06-27 MLX4DV_QUERY_DEVICE(3)