|
MXL : Media eXchange Layer
MXL
|
RAII wrapper around a libfabric memory region (fid_mr). More...
#include <MemoryRegion.hpp>
Public Member Functions | |
| void * | desc () const noexcept |
| Get the descriptor associated with the memory region. | |
| MemoryRegion (MemoryRegion &&) noexcept | |
| MemoryRegion (MemoryRegion const &)=delete | |
| MemoryRegion & | operator= (MemoryRegion &&) noexcept |
| void | operator= (MemoryRegion const &)=delete |
| ::fid_mr const * | raw () const noexcept |
| Access the underlying raw fid_mr pointer. | |
| ::fid_mr * | raw () noexcept |
| Access the underlying raw fid_mr pointer. | |
| std::uint64_t | rkey () const noexcept |
| Get the remote key (rkey) associated with the memory region. | |
| ~MemoryRegion () | |
Static Public Member Functions | |
| static MemoryRegion | reg (Domain &domain, Region const ®ion, std::uint64_t access) |
| Register a memory region with a specified domain and access permissions. | |
Private Member Functions | |
| void | close () |
| Internal method to release the memory region. | |
| MemoryRegion (::fid_mr *raw) | |
Private Attributes | |
| ::fid_mr * | _raw |
Friends | |
| class | RegisteredRegion |
RAII wrapper around a libfabric memory region (fid_mr).
Definition at line 19 of file MemoryRegion.hpp.
| mxl::lib::fabrics::ofi::MemoryRegion::~MemoryRegion | ( | ) |
Definition at line 84 of file MemoryRegion.cpp.
|
delete |
|
noexcept |
Definition at line 89 of file MemoryRegion.cpp.
|
private |
Definition at line 115 of file MemoryRegion.cpp.
|
private |
Internal method to release the memory region.
Definition at line 119 of file MemoryRegion.cpp.
|
nodiscardnoexcept |
Get the descriptor associated with the memory region.
Definition at line 105 of file MemoryRegion.cpp.
|
noexcept |
Definition at line 95 of file MemoryRegion.cpp.
|
delete |
|
nodiscardnoexcept |
Access the underlying raw fid_mr pointer.
|
nodiscardnoexcept |
Access the underlying raw fid_mr pointer.
|
static |
Register a memory region with a specified domain and access permissions.
| domain | The domain to register the memory region with. |
| region | The region to register. |
| access | The access permissions for the memory region. Possible values are:
|
Definition at line 38 of file MemoryRegion.cpp.
|
nodiscardnoexcept |
Get the remote key (rkey) associated with the memory region.
This the mechanism for protecting a registered region. One should be careful and should only share this secret with initiators that are allowed to access this memory region.
Definition at line 110 of file MemoryRegion.cpp.
|
friend |
Definition at line 67 of file MemoryRegion.hpp.
|
private |
Definition at line 77 of file MemoryRegion.hpp.