.\" Automatically generated by Pandoc 3.5 .\" .TH "ibv_dm_export_dmabuf_fd" "3" "2025\-12\-7" "libibverbs" "Libibverbs Programmer\[cq]s Manual" .SH NAME ibv_dm_export_dmabuf_fd \- export dmabuf fd for a given ibv_dm. .SH SYNOPSIS .IP .EX #include \f[B]\f[R] int ibv_dm_export_dmabuf_fd(\f[B]struct\f[R] ibv_dm *dm); .EE .SH DESCRIPTION \f[B]ibv_dm_export_dmabuf_fd()\f[R] exports a dmabuf fd that is associated with the given \f[I]dm\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]ibv_dm_export_dmabuf_fd()\f[R] API. .SH ARGUMENTS .TP \f[I]dm\f[R] An ibv_dm pointer to export the dmabuf fd for its memory. .SH RETURN VALUE \f[B]ibv_dm_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) .SH AUTHOR Yishai Hadas \c .MT yishaih@nvidia.com .ME \c