Simple Virtual Machine
A simple but flexible virtual machine
Loading...
Searching...
No Matches
SVM memories

This module contains API functions to handle SVM memories. More...

Modules

 SVM memory zone
 This module contains API functions to handle SVM memory zones.
 
 SVM memory allocation
 This module contains API functions to handle SVM memory allocation.
 
 SVM memory scope
 This module contains API functions to handle SVM memory scope.
 
 SVM memory addresses
 This module contains API functions to handle SVM memory addresses.
 
 SVM memory pointers
 This module contains API functions to handle SVM memory pointers.
 
 SVM memory read
 This module contains API functions to handle SVM memory read access.
 
 SVM memory write
 This module contains API functions to handle SVM memory write access.
 
 SVM memory aliases
 This module contains API functions to handle SVM memory aliases.
 
 SVM memory operations
 This module contains API functions to handle SVM memory operations.
 
 SVM memory synchronisation
 This module contains API functions to handle SVM memory synchronisation.
 

Functions

SVM_FUNCTION SVM_Value_Pointersvm_memory_get_defined (const void *svm, const SVM_Kernel kernel)
 This function returns pointers on all defined blocks in memory.
 
SVM_FUNCTION SVM_Value_Pointer svm_memory_get_space (const void *svm)
 This function returns a pointer representing all address space.
 

Detailed Description

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

Function Documentation

◆ svm_memory_get_defined()

SVM_FUNCTION SVM_Value_Pointer * svm_memory_get_defined ( const void *  svm,
const SVM_Kernel  kernel 
)

This function returns pointers on all defined blocks in memory.

Parameters
[in]svmThe SVM pointer passed as first argument of the callback function.
[in]kernelThe 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
FAILUREinterruption when a parameter is incorrect. (Please refer to the main description page of this API.)
FAILUREinterruption 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()

SVM_FUNCTION SVM_Value_Pointer svm_memory_get_space ( const void *  svm)

This function returns a pointer representing all address space.

Parameters
[in]svmThe SVM pointer passed as first argument of the callback function.
Returns
A pointer representing the complete address space.
Exceptions
FAILUREinterruption when a parameter is incorrect. (Please refer to the main description page of this API.)