NAME |SYNOPSIS |DESCRIPTION |ARGUMENTS |RETURN VALUE |ERRORS |NOTES |SEE ALSO |AUTHOR |COLOPHON | |
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 givencontext. This lets an application to discover whether/which data direct device is associated with the givencontext.
context RDMA device context to work on.buf The buffer where to place the sysfs path of the associated data direct device.buf_len 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. ENODEV There is no associated data direct device for the given *context*. ENOSPC 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⟩
This page is part of therdma-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 2025-08-11. (At that time, the date of the most recent commit that was found in the repository was 2025-08-04.) 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 isnot part of the original manual page), send a mail to man-pages@man7.orgmlx5dv_get_data_direct_sysfs_path(3)HTML rendering created 2025-09-06 byMichael Kerrisk, author ofThe Linux Programming Interface. For details of in-depthLinux/UNIX system programming training courses that I teach, lookhere. Hosting byjambit GmbH. | ![]() |