|
NAME | SYNOPSIS | DESCRIPTION | RETURN VALUE | NOTES | SEE ALSO | AUTHOR | COLOPHON |
|
|
|
ibv_imp...mport_dm(3) Libibverbs Programmer’s Manualibv_imp...mport_dm(3)
ibv_import_dm - import an DM from a given ibv_context
ibv_unimport_dm - unimport an DM
#include <infiniband/verbs.h>
struct ibv_dm *ibv_import_dm(struct ibv_context *context, uint32_t dm_handle);
void ibv_unimport_dm(struct ibv_dm *dm)
ibv_import_dm() returns a Device memory (DM) that is associated
with the given dm_handle in the RDMA context.
The input dm_handle value must be a valid kernel handle for an DM
object in the assosicated RDMA context. It can be achieved from
the original DM by getting its ibv_dm->handle member value.
ibv_unimport_dm() un import the DM. Once the DM usage has been
ended ibv_free_dm() or ibv_unimport_dm() should be called. The
first one will go to the kernel to destroy the object once the
second one way cleanup what ever is needed/opposite of the import
without calling the kernel.
This is the responsibility of the application to coordinate
between all ibv_context(s) that use this DM. Once destroy is done
no other process can touch the object except for unimport. All
users of the context must collaborate to ensure this.
ibv_import_dm() returns a pointer to the allocated DM, or NULL if
the request fails and errno is set.
ibv_alloc_dm(3), ibv_free_dm(3),
Maor Gottlieb ⟨maorg@nvidia.com⟩
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 2025-08-11. (At
that time, the date of the most recent commit that was found in
the repository was 2025-08-04.) 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
libibverbs 2021-1-17 ibv_imp...mport_dm(3)