This module contains API functions to handle SVM memories.
More...
This module contains API functions to handle SVM memories.
A memory is a data storage using strong typing and allocation to control data integrity and life span.
- See also
- SVM kernels
-
SVM values
◆ svm_memory_get_defined()
This function returns pointers on all defined blocks in memory.
- Parameters
-
| [in] | svm | The SVM pointer passed as first argument of the callback function. |
| [in] | kernel | The kernel in which the targeted memory is. |
- Returns
- A NULL terminated array of pointer values locating all defined addresses of memory.
- Note
- The returned array is a valid SVM variable: its scope can be changed if needed, and the pointer shall not be freed explicitely.
- Exceptions
-
| FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
| FAILURE | interruption when the kernel is not owned by our process or is not in a process locked by ours. |
- See also
- svm_memory_address_is_defined
◆ svm_memory_get_space()
This function returns a pointer representing all address space.
- Parameters
-
| [in] | svm | The SVM pointer passed as first argument of the callback function. |
- Returns
- A pointer representing the complete address space.
- Exceptions
-
| FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |