RTEMS  5.0.0
wkspace.h
Go to the documentation of this file.
1 
11 /*
12  * COPYRIGHT (c) 1989-2009.
13  * On-Line Applications Research Corporation (OAR).
14  *
15  * The license and distribution terms for this file may be
16  * found in the file LICENSE in this distribution or at
17  * http://www.rtems.org/license/LICENSE.
18  */
19 
20 #ifndef _RTEMS_SCORE_WKSPACE_H
21 #define _RTEMS_SCORE_WKSPACE_H
22 
23 #include <rtems/score/heap.h>
24 #include <rtems/score/interr.h>
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
47 
54  Heap_Area *areas,
55  size_t area_count,
57 );
58 
71  size_t size
72 );
73 
83 void *_Workspace_Allocate_aligned( size_t size, size_t alignment );
84 
99 void _Workspace_Free(
100  void *block
101 );
102 
114  size_t size
115 );
116 
127  const char *string,
128  size_t len
129 );
130 
133 #ifdef __cplusplus
134 }
135 #endif
136 
137 #endif
138 /* end of include file */
Constants and Prototypes Related to the Internal Error Handler.
uintptr_t(* Heap_Initialization_or_extend_handler)(Heap_Control *heap, void *area_begin, uintptr_t area_size, uintptr_t page_size_or_unused)
Heap initialization and extend handler type.
Definition: heap.h:289
Heap area structure for table based heap initialization and extension.
Definition: heap.h:275
void * _Workspace_Allocate_aligned(size_t size, size_t alignment)
Allocate aligned memory from workspace.
Definition: wkspace.c:251
void _Workspace_Handler_initialization(Heap_Area *areas, size_t area_count, Heap_Initialization_or_extend_handler extend)
Initilize workspace handler.
Definition: wkspace.c:155
Heap Handler API.
Heap_Control _Workspace_Area
Executive workspace control.
Definition: wkspace.c:43
Control block used to manage a heap.
Definition: heap.h:255
char * _Workspace_String_duplicate(const char *string, size_t len)
Duplicates string with memory from the workspace.
Definition: wkstringduplicate.c:31
void _Workspace_Free(void *block)
Free memory to the workspace.
Definition: wkspace.c:259
void * _Workspace_Allocate_or_fatal_error(size_t size)
Workspace allocate or fail with fatal error.
Definition: wkspace.c:274
unsigned size
Definition: tte.h:74
void * _Workspace_Allocate(size_t size)
Allocate memory from workspace.
Definition: wkspace.c:232