RTEMS
|
Files | |
file | wkspaceinitone.c |
_Workspace_Handler_initialization() Implementation | |
file | wkspace.h |
Information Related to the RAM Workspace. | |
file | wkspacedata.h |
Constants defined by the application configuration for the idle threads. | |
file | wkspaceinitone.h |
Workspace Handler Initialization API. | |
file | wkspace.c |
Workspace Handler System Initialization. | |
file | wkspaceallocate.c |
_Workspace_Allocate() Implementation | |
file | wkspacemallocinitdefault.c |
This source file provides the default definition of _Workspace_Malloc_initializer. | |
file | wkspacemallocinitunified.c |
This source file provides the implementation of _Workspace_Malloc_initialize_unified(). | |
Functions | |
void | _Workspace_Handler_initialization (void) |
Initializes the workspace handler. More... | |
void * | _Workspace_Allocate (size_t size) |
Allocates a memory block of the specified size from the workspace. More... | |
void | _Workspace_Free (void *block) |
Frees memory to the workspace. More... | |
char * | _Workspace_String_duplicate (const char *string, size_t len) |
Duplicates string with memory from the workspace. More... | |
struct Heap_Control * | _Workspace_Malloc_initialize_separate (void) |
Initializes the C Program Heap separated from the RTEMS Workspace. More... | |
struct Heap_Control * | _Workspace_Malloc_initialize_unified (void) |
Initializes the C Program Heap so that it is unified with the RTEMS Workspace. More... | |
static __inline__ void | _Workspace_Initialize_with_one_area (void) |
Variables | |
Heap_Control | _Workspace_Area |
Executive workspace control. More... | |
const uintptr_t | _Workspace_Size |
The workspace size in bytes. More... | |
const bool | _Workspace_Is_unified |
Indicates if the workspace and C program heap are unified. More... | |
struct Heap_Control *(*const | _Workspace_Malloc_initializer )(void) |
This constant provides the C Program Heap initialization handler. More... | |
This handler encapsulates functionality related to the management of the RTEMS Executive Workspace.
void* _Workspace_Allocate | ( | size_t | size | ) |
Allocates a memory block of the specified size from the workspace.
size | The size of the memory block. |
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. |
Definition at line 43 of file wkspaceallocate.c.
void _Workspace_Free | ( | void * | block | ) |
Frees memory to the workspace.
This function frees the specified block of memory.
block | The memory to free. |
void _Workspace_Handler_initialization | ( | void | ) |
Initializes the workspace handler.
This routine performs the initialization necessary for this handler.
Definition at line 42 of file wkspaceinitone.c.
struct Heap_Control* _Workspace_Malloc_initialize_separate | ( | void | ) |
Initializes the C Program Heap separated from the RTEMS Workspace.
Definition at line 45 of file mallocinitone.c.
struct Heap_Control* _Workspace_Malloc_initialize_unified | ( | void | ) |
Initializes the C Program Heap so that it is unified with the RTEMS Workspace.
Definition at line 44 of file wkspacemallocinitunified.c.
char* _Workspace_String_duplicate | ( | const char * | string, |
size_t | len | ||
) |
Duplicates string with memory from the workspace.
string | The pointer to a zero terminated string. |
len | The length of the string (equal to strlen(string)). |
other | Duplicated string. |
NULL | Not enough memory. |
Heap_Control _Workspace_Area |
const bool _Workspace_Is_unified |
Indicates if the workspace and C program heap are unified.
This constant is defined by the application configuration via <rtems/confdefs.h>.
Definition at line 34 of file wkspaceisunifieddefault.c.
struct Heap_Control*( * const _Workspace_Malloc_initializer) (void) |
This constant provides the C Program Heap initialization handler.
This constant is defined by the application configuration option CONFIGURE_UNIFIED_WORK_AREAS via <rtems/confdefs.h> or a default configuration.
Definition at line 43 of file wkspacemallocinitdefault.c.
const uintptr_t _Workspace_Size |
The workspace size in bytes.
This constant is defined by the application configuration via <rtems/confdefs.h>.