logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

mlx4dv_query_device - Query device capabilities specific to mlx4

Authors

Maor Gottlieb <maorg@mellanox.com> 1.0.0 2017-06-27 MLX4DV_QUERY_DEVICE(3)

Description

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; };

Name

mlx4dv_query_device - Query device capabilities specific to mlx4

Notes

* Compatibility mask (comp_mask) is an in/out field.

Return Value

0 on success or the value of errno on failure (which indicates the failure reason).

See Also

mlx4dv(7), ibv_query_device(3)

Synopsis

#include<infiniband/mlx4dv.h>intmlx4dv_query_device(structibv_context*ctx_in,structmlx4dv_context*attrs_out);

See Also