RTEMS  5.1
wkspace.h
Go to the documentation of this file.
1 
13 /*
14  * COPYRIGHT (c) 1989-2009.
15  * On-Line Applications Research Corporation (OAR).
16  *
17  * The license and distribution terms for this file may be
18  * found in the file LICENSE in this distribution or at
19  * http://www.rtems.org/license/LICENSE.
20  */
21 
22 #ifndef _RTEMS_SCORE_WKSPACE_H
23 #define _RTEMS_SCORE_WKSPACE_H
24 
25 #include <rtems/score/heap.h>
26 #include <rtems/score/interr.h>
27 #include <rtems/score/memory.h>
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
51 
61  const Memory_Information *mem,
63 );
64 
75 void *_Workspace_Allocate( size_t size );
76 
88 void _Workspace_Free(
89  void *block
90 );
91 
102  const char *string,
103  size_t len
104 );
105 
108 #ifdef __cplusplus
109 }
110 #endif
111 
112 #endif
113 /* end of include file */
Constants and Prototypes Related to the Internal Error Handler.
void _Workspace_Free(void *block)
Frees memory to the workspace.
Definition: wkspace.c:112
Memory Handler API.
The memory information.
Definition: memory.h:80
Heap Handler API.
Heap_Control _Workspace_Area
Executive workspace control.
Definition: wkspace.c:28
void * _Workspace_Allocate(size_t size)
Allocates a memory block of the specified size from the workspace.
Definition: wkspace.c:107
char * _Workspace_String_duplicate(const char *string, size_t len)
Duplicates string with memory from the workspace.
Definition: wkstringduplicate.c:31
Control block used to manage a heap.
Definition: heap.h:318
void _Workspace_Handler_initialization(const Memory_Information *mem, Heap_Initialization_or_extend_handler extend)
Initilizes the workspace handler.
Definition: wkspace.c:41
unsigned size
Definition: tte.h:74
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:352