mlx5dv_dev..._dmabuf_fd(3)
π NAME π
okay bestie, this page is mlx5dv_dev..._dmabuf_fd(3) from the Library Functions Manual, and the main character is:
mlx5dv_devx_uar_export_dmabuf_fd β export dmabuf fd for a given mlx5dv_devx_uar.
β¨ SYNOPSIS β¨
#include <infiniband/mlx5dv.h>
int mlx5dv_devx_uar_export_dmabuf_fd(struct mlx5dv_devx_uar *devx_uar);
π DESCRIPTION π
mlx5dv_devx_uar_export_dmabuf_fd() exports a dmabuf fd that is associated with the given devx_uar. slay.
That returned fd can later be used for DMA and RDMA operations associated with it. periodt.
When you're done using it, call close() while supplying the fd. This is the call that releases resources that were earlier allocated using the mlx5dv_devx_uar_export_dmabuf_fd() API. so don't ghost it, bestie π
π¦ ARGUMENTS π¦
devx_uarβ anmlx5dv_devx_uarpointer to export the dmabuf fd for its memory. that's the whole vibe check π«Ά
πΈ RETURN VALUE πΈ
mlx5dv_devx_uar_export_dmabuf_fd() returns an fd number >= 0 upon success, or -1 if the request fails and errno is set to the error. no cap π
π SEE ALSO π
ibv_reg_mr_ex(3) ibv_dm_export_dmabuf_fd(3)
π AUTHOR π
Yishai Hadas yishaih@nvidia.com
xoxo, signing off from the mlx5dv_dev..._dmabuf_fd(3) page in the Library Functions Manual π the original footer doesn't give a source/version or date beyond that, so I'm not inventing one β we stay factual in this group chat π«Άβ¨
π¦ where this page comes from
- arch rolling: rdma-core 65.0-1 Β· GPL-2.0-or-later OR LicenseRef-OpenIB.org-BSD-MIT AND GPL-2.0-or-later OR LicenseRef-OpenIB.org-BSD-FreeBSD AND GPL-2.0-or-later OR LicenseRef-Intel-BSD-3-Clause AND GPL-2.0-or-later OR LicenseRef-PathScale-BSD-Patent-License AND CC0-1.0 AND MIT AND BSD-2-Clause AND CPL-1.0 OR BSD-2-Clause OR GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms