.\" Automatically generated by Pandoc 3.5 .\" .TH "mlx5dv_devx_uar_export_dmabuf_fd" "3" "" "" .SH NAME mlx5dv_devx_uar_export_dmabuf_fd \- export dmabuf fd for a given mlx5dv_devx_uar. .SH SYNOPSIS .IP .EX #include \f[B]\f[R] int mlx5dv_devx_uar_export_dmabuf_fd(\f[B]struct\f[R] mlx5dv_devx_uar *devx_uar); .EE .SH DESCRIPTION \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 \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 \f[B]ibv_reg_mr_ex\f[R](3) \f[B]ibv_dm_export_dmabuf_fd\f[R](3) .SH AUTHOR Yishai Hadas \c .MT yishaih@nvidia.com .ME \c