This group contains the Workspace Handler implementation.
More...
This group contains the Workspace Handler implementation.
This handler encapsulates functionality related to the management of the RTEMS Workspace. It provides mechanisms which can be used to define, initialize and manipulate the RTEMS Workspace.
◆ _Workspace_Allocate()
void * _Workspace_Allocate |
( |
size_t |
size | ) |
|
Allocates a memory block of the specified size from the workspace.
- Parameters
-
size | The size of the memory block. |
- Return values
-
pointer | The pointer to the memory block. The pointer is at least aligned by CPU_HEAP_ALIGNMENT. |
NULL | No memory block with the requested size is available in the workspace. |
◆ _Workspace_Free()
void _Workspace_Free |
( |
void * |
block | ) |
|
Frees memory to the workspace.
This function frees the specified block of memory.
- Parameters
-
- Note
- If block is equal to NULL, then the request is ignored. This allows the caller to not worry about whether or not a pointer is NULL.
◆ _Workspace_Handler_initialization()
void _Workspace_Handler_initialization |
( |
void |
| ) |
|
Initializes the workspace handler.
This routine performs the initialization necessary for this handler.
◆ _Workspace_Malloc_initialize_separate()
struct Heap_Control * _Workspace_Malloc_initialize_separate |
( |
void |
| ) |
|
Initializes the C Program Heap separated from the RTEMS Workspace.
- Returns
- Returns the heap control used for the C Program Heap.
◆ _Workspace_Malloc_initialize_unified()
struct Heap_Control * _Workspace_Malloc_initialize_unified |
( |
void |
| ) |
|
Initializes the C Program Heap so that it is unified with the RTEMS Workspace.
- Returns
- Returns the heap control used for the C Program Heap.
◆ _Workspace_String_duplicate()
char * _Workspace_String_duplicate |
( |
const char * |
string, |
|
|
size_t |
len |
|
) |
| |
Duplicates string with memory from the workspace.
- Parameters
-
string | The pointer to a zero terminated string. |
len | The length of the string (equal to strlen(string)). |
- Return values
-
other | Duplicated string. |
NULL | Not enough memory. |
◆ _Workspace_Area
Executive workspace control.
This is the heap control structure used to manage the RTEMS Executive Workspace.
◆ _Workspace_Is_unified
const bool _Workspace_Is_unified |
|
extern |
Indicates if the workspace and C program heap are unified.
This constant is defined by the application configuration via <rtems/confdefs.h>.
◆ _Workspace_Malloc_initializer
struct Heap_Control *(*const _Workspace_Malloc_initializer) (void) |
( |
void |
| ) |
|
|
extern |
◆ _Workspace_Size
const uintptr_t _Workspace_Size |
|
extern |
The workspace size in bytes.
This constant is defined by the application configuration via <rtems/confdefs.h>.