This class is an abstraction of a Protection Domain.
More...
#include <rdmapp/pd.h>
|
| pd (std::shared_ptr< device > device) |
| Construct a new pd object.
|
|
std::shared_ptr< device > | device_ptr () const |
| Get the device object pointer.
|
|
local_mr | reg_mr (void *addr, size_t length, int flags=IBV_ACCESS_LOCAL_WRITE|IBV_ACCESS_REMOTE_WRITE|IBV_ACCESS_REMOTE_READ|IBV_ACCESS_REMOTE_ATOMIC) |
| Register a local memory region.
|
|
| ~pd () |
| Destroy the pd object and the associated protection domain.
|
|
| noncopyable (noncopyable &&)=default |
|
| noncopyable (noncopyable const &)=delete |
|
noncopyable & | operator= (noncopyable const &)=delete |
|
noncopyable & | operator= (noncopyable &&)=default |
|
This class is an abstraction of a Protection Domain.
◆ pd()
rdmapp::pd::pd |
( |
std::shared_ptr< device > |
device | ) |
|
Construct a new pd object.
- Parameters
-
◆ device_ptr()
std::shared_ptr< device > rdmapp::pd::device_ptr |
( |
| ) |
const |
Get the device object pointer.
- Returns
- std::shared_ptr<device> The device object pointer.
◆ reg_mr()
local_mr rdmapp::pd::reg_mr |
( |
void * |
addr, |
|
|
size_t |
length, |
|
|
int |
flags = IBV_ACCESS_LOCAL_WRITE | IBV_ACCESS_REMOTE_WRITE | IBV_ACCESS_REMOTE_READ | IBV_ACCESS_REMOTE_ATOMIC |
|
) |
| |
Register a local memory region.
- Parameters
-
addr | The address of the memory region. |
length | The length of the memory region. |
flags | The access flags to use. |
- Returns
- local_mr The local memory region handle.
The documentation for this class was generated from the following files:
- include/rdmapp/pd.h
- src/pd.cc