.\" Automatically generated by Pandoc 2.9.2.1 .\" .TH "mlx5dv_devx_uar_export_dmabuf_fd" "3" "" "" "" .hy .SH NAME .PP mlx5dv_devx_uar_export_dmabuf_fd - export dmabuf fd for a given mlx5dv_devx_uar. .SH SYNOPSIS .IP .nf \f[C] #include int mlx5dv_devx_uar_export_dmabuf_fd(struct mlx5dv_devx_uar *devx_uar); \f[R] .fi .SH DESCRIPTION .PP \f[B]mlx5dv_devx_uar_export_dmabuf_fd()\f[R] exports a dmabuf fd that is associated with the given \f[I]devx_uar\f[R]. .PP The returned fd can be later used for DMA and RDMA operations associated with it. .PP Once the usage has been ended, close() should be called while supplying the fd. .PP This call will release resources that were earlier allocated using the \f[B]mlx5dv_devx_uar_export_dmabuf_fd()\f[R] API. .SH ARGUMENTS .TP \f[I]devx_uar\f[R] An mlx5dv_devx_uar pointer to export the dmabuf fd for its memory. .SH RETURN VALUE .PP \f[B]mlx5dv_devx_uar_export_dmabuf_fd()\f[R] returns an fd number >= 0 upon success, or -1 if the request fails and errno set to the error. .SH SEE ALSO .PP \f[B]ibv_reg_mr_ex\f[R](3) \f[B]ibv_dm_export_dmabuf_fd\f[R](3) .SH AUTHOR .PP Yishai Hadas