.\" Automatically generated by Pandoc 2.9.2.1 .\" .TH "mlx5dv_get_data_direct_sysfs_path" "3" "" "" "" .hy .SH NAME .PP mlx5dv_get_data_direct_sysfs_path - Get the sysfs path of a data direct device .SH SYNOPSIS .IP .nf \f[C] #include int mlx5dv_get_data_direct_sysfs_path(struct ibv_context *context, char *buf, size_t buf_len) \f[R] .fi .SH DESCRIPTION .PP Get the sysfs path of the data direct device that is associated with the given \f[I]context\f[R]. .PP This lets an application to discover whether/which data direct device is associated with the given \f[I]context\f[R]. .SH ARGUMENTS .TP \f[I]context\f[R] RDMA device context to work on. .TP \f[I]buf\f[R] The buffer where to place the sysfs path of the associated data direct device. .TP \f[I]buf_len\f[R] .IP .nf \f[C] The length of the buffer. \f[R] .fi .SH RETURN VALUE .PP Upon success 0 is returned or the value of errno on a failure. .SH ERRORS .PP The below specific error values should be considered. .TP ENODEV .IP .nf \f[C] There is no associated data direct device for the given *context*. \f[R] .fi .TP ENOSPC .IP .nf \f[C] The input buffer size is too small to hold the full sysfs path. \f[R] .fi .SH NOTES .PP Upon succees, the caller should add the /sys/ prefix to get the full sysfs path. .SH SEE ALSO .PP \f[I]mlx5dv_reg_dmabuf_mr(3)\f[R] .SH AUTHOR .PP Yishai Hadas