mlx5dv_devx_uar_export_dmabuf_fd(3) — Linux manual page

NAME | SYNOPSIS | DESCRIPTION | ARGUMENTS | RETURN VALUE | SEE ALSO | AUTHOR | COLOPHON

mlx5dv_de...dmabuf_fd(3) Library Functions Manualmlx5dv_de...dmabuf_fd(3)

NAME         top

       mlx5dv_devx_uar_export_dmabuf_fd - export dmabuf fd for a given
       mlx5dv_devx_uar.

SYNOPSIS         top

              #include <infiniband/mlx5dv.h>

              int mlx5dv_devx_uar_export_dmabuf_fd(struct mlx5dv_devx_uar *devx_uar);

DESCRIPTION         top

       mlx5dv_devx_uar_export_dmabuf_fd() exports a dmabuf fd that is
       associated with the given devx_uar.

       The returned fd can be later used for DMA and RDMA operations
       associated with it.

       Once the usage has been ended, close() should be called while
       supplying the fd.

       This call will release resources that were earlier allocated using
       the mlx5dv_devx_uar_export_dmabuf_fd() API.

ARGUMENTS         top

       devx_uar
              An mlx5dv_devx_uar pointer to export the dmabuf fd for its
              memory.

RETURN VALUE         top

       mlx5dv_devx_uar_export_dmabuf_fd() returns an fd number >= 0 upon
       success, or -1 if the request fails and errno set to the error.

SEE ALSO         top

       ibv_reg_mr_ex(3) ibv_dm_export_dmabuf_fd(3)

AUTHOR         top

       Yishai Hadas ⟨yishaih@nvidia.com⟩

COLOPHON         top

       This page is part of the rdma-core (RDMA Core Userspace Libraries
       and Daemons) project.  Information about the project can be found
       at ⟨https://github.com/linux-rdma/rdma-core⟩.  If you have a bug
       report for this manual page, send it to
       linux-rdma@vger.kernel.org.  This page was obtained from the
       project's upstream Git repository
       ⟨https://github.com/linux-rdma/rdma-core.git⟩ on 2026-05-24.  (At
       that time, the date of the most recent commit that was found in
       the repository was 2026-05-20.)  If you discover any rendering
       problems in this HTML version of the page, or you believe there is
       a better or more up-to-date source for the page, or you have
       corrections or improvements to the information in this COLOPHON
       (which is not part of the original manual page), send a mail to
       man-pages@man7.org

                                                 mlx5dv_de...dmabuf_fd(3)