forked from linux-rdma/rdma-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request linux-rdma#968 from yishaih/verbs_dm
verbs: Extend the device memory functionality
- Loading branch information
Showing
29 changed files
with
655 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
--- | ||
date: 2021-1-17 | ||
footer: libibverbs | ||
header: "Libibverbs Programmer's Manual" | ||
layout: page | ||
license: 'Licensed under the OpenIB.org BSD license (FreeBSD Variant) - See COPYING.md' | ||
section: 3 | ||
title: ibv_import_dm ibv_unimport_dm | ||
--- | ||
|
||
# NAME | ||
|
||
ibv_import_dm - import an DM from a given ibv_context | ||
|
||
ibv_unimport_dm - unimport an DM | ||
|
||
# SYNOPSIS | ||
|
||
```c | ||
#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) | ||
|
||
``` | ||
# DESCRIPTION | ||
**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. | ||
# RETURN VALUE | ||
**ibv_import_dm()** returns a pointer to the allocated DM, or NULL if the request fails and errno is set. | ||
# NOTES | ||
# SEE ALSO | ||
**ibv_alloc_dm**(3), | ||
**ibv_free_dm**(3), | ||
# AUTHOR | ||
Maor Gottlieb <[email protected]> | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -178,4 +178,5 @@ MLX5_1.18 { | |
MLX5_1.19 { | ||
global: | ||
mlx5dv_devx_umem_reg_ex; | ||
mlx5dv_dm_map_op_addr; | ||
} MLX5_1.18; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
layout: page | ||
title: mlx5dv_dm_map_op_addr | ||
section: 3 | ||
tagline: Verbs | ||
date: 2021-1-21 | ||
header: "mlx5 Programmer's Manual" | ||
footer: mlx5 | ||
--- | ||
|
||
# NAME | ||
|
||
mlx5dv_dm_map_op_addr - Get operation address of a device memory (DM) | ||
|
||
# SYNOPSIS | ||
|
||
```c | ||
#include <infiniband/mlx5dv.h> | ||
|
||
void *mlx5dv_dm_map_op_addr(struct ibv_dm *dm, uint8_t op); | ||
``` | ||
# DESCRIPTION | ||
**mlx5dv_dm_map_op_addr()** returns a mmaped address to the device memory for the | ||
requested **op**. | ||
# ARGUMENTS | ||
*dm* | ||
: The associated ibv_dm for this operation. | ||
*op* | ||
: Indicates the DM operation type, based on device specification. | ||
# RETURN VALUE | ||
Returns a pointer to the mmaped address, on error NULL will be returned and errno will be set. | ||
# SEE ALSO | ||
**ibv_alloc_dm**(3), | ||
**mlx5dv_alloc_dm**(3), | ||
# AUTHOR | ||
Maor Gottlieb <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.