mlx5dv_get_data_direct_sysfs_path(3) | mlx5dv_get_data_direct_sysfs_path(3) |
mlx5dv_get_data_direct_sysfs_path - Get the sysfs path of a data direct device
#include <infiniband/mlx5dv.h> int mlx5dv_get_data_direct_sysfs_path(struct ibv_context *context, char *buf, size_t buf_len)
Get the sysfs path of the data direct device that is associated with the given context.
This lets an application to discover whether/which data direct device is associated with the given context.
The length of the buffer.
Upon success 0 is returned or the value of errno on a failure.
The below specific error values should be considered.
There is no associated data direct device for the given *context*.
The input buffer size is too small to hold the full sysfs path.
Upon succees, the caller should add the /sys/ prefix to get the full sysfs path.
mlx5dv_reg_dmabuf_mr(3)
Yishai Hadas yishaih@nvidia.com