RTEMS 5.2
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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
30extern "C" {
31#endif
32
51
61 const Memory_Information *mem,
63);
64
75void *_Workspace_Allocate( size_t size );
76
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 */
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
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)
Frees memory to the workspace.
Definition: wkspace.c:112
void _Workspace_Handler_initialization(const Memory_Information *mem, Heap_Initialization_or_extend_handler extend)
Initilizes the workspace handler.
Definition: wkspace.c:41
void * _Workspace_Allocate(size_t size)
Allocates a memory block of the specified size from the workspace.
Definition: wkspace.c:107
Heap_Control _Workspace_Area
Executive workspace control.
Definition: wkspace.c:28
Heap Handler API.
Constants and Prototypes Related to the Internal Error Handler.
Memory Handler API.
Control block used to manage a heap.
Definition: heap.h:318
The memory information.
Definition: memory.h:80
unsigned size
Definition: tte.h:1