#include <DeviceMemory.h>
Definition at line 30 of file DeviceMemory.h.
◆ DeviceMemory()
| DeviceMemory::DeviceMemory |
( |
| ) |
|
|
delete |
◆ add()
| void DeviceMemory::add |
( |
void * | ptr, |
|
|
void * | device_ptr, |
|
|
trustIdType | bytes ) |
|
static |
Add a new line to the memory_map_ ptr should be non-null, device_ptr and size may be null
Definition at line 100 of file DeviceMemory.cpp.
◆ addrOnDevice()
| void * DeviceMemory::addrOnDevice |
( |
void * | ptr | ) |
|
|
static |
Return the device address of the host ptr Return nullptr if ptr null or map empty Fatal error if address not found on the device
Definition at line 70 of file DeviceMemory.cpp.
◆ allocatedBytesOnDevice()
| size_t DeviceMemory::allocatedBytesOnDevice |
( |
| ) |
|
|
static |
◆ del()
| void DeviceMemory::del |
( |
void * | ptr | ) |
|
|
static |
◆ deviceMemGetInfo()
| size_t DeviceMemory::deviceMemGetInfo |
( |
bool | print_total | ) |
|
|
static |
◆ getMemoryMap()
| map_t & DeviceMemory::getMemoryMap |
( |
| ) |
|
|
inlinestatic |
◆ isAllocatedOnDevice()
| bool DeviceMemory::isAllocatedOnDevice |
( |
void * | ptr | ) |
|
|
static |
Check if a chunk (even empty) is allocated on the device for the host ptr Return true/false
Definition at line 58 of file DeviceMemory.cpp.
◆ printMemoryMap()
| void DeviceMemory::printMemoryMap |
( |
| ) |
|
|
static |
◆ warning()
| bool DeviceMemory::warning |
( |
trustIdType | nb_items | ) |
|
|
static |
◆ internal_items_size_
| trustIdType DeviceMemory::internal_items_size_ = 1e9 |
|
static |
◆ nb_pas_dt_
| int DeviceMemory::nb_pas_dt_ = -1 |
|
static |
The documentation for this struct was generated from the following files:
- /home/docs/checkouts/readthedocs.org/user_builds/cea-trust-platform/checkouts/v1.9.8/src/Kernel/Utilitaires/DeviceMemory.h
- /home/docs/checkouts/readthedocs.org/user_builds/cea-trust-platform/checkouts/v1.9.8/src/Kernel/Utilitaires/DeviceMemory.cpp