.\" Automatically generated by Pandoc 2.9.2.1
.\"
.TH "ibv_dm_export_dmabuf_fd" "3" "2025-12-7" "libibverbs" "Libibverbs Programmer\[cq]s Manual"
.hy
.SH NAME
.PP
ibv_dm_export_dmabuf_fd - export dmabuf fd for a given ibv_dm.
.SH SYNOPSIS
.IP
.nf
\f[C]
#include <infiniband/verbs.h>

int ibv_dm_export_dmabuf_fd(struct ibv_dm *dm);
\f[R]
.fi
.SH DESCRIPTION
.PP
\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
.PP
\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
.PP
\f[B]ibv_reg_mr_ex\f[R](3)
.SH AUTHOR
.PP
Yishai Hadas <yishaih@nvidia.com>
