RTEMS: Task Stack Allocator

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
Files | Macros | Functions
Task Stack Allocator
Board Support Packages » Shared

Task stack initialization, allocation and free functions. More...

## Files
file | stackalloc.h
| Task stack initialization, allocation and free functions.
file | stackalloc.c
| Stack initialization, allocation and free functions.

## Macros
#define | CONFIGURE_TASK_STACK_ALLOCATOR_INIT bsp_stack_allocate_init
| Task stack allocator initialization configuration option.
#define | CONFIGURE_TASK_STACK_ALLOCATOR bsp_stack_allocate
| Task stack allocator configuration option.
#define | CONFIGURE_TASK_STACK_DEALLOCATOR bsp_stack_free
| Task stack deallocator configuration option.

## Functions
void | bsp_stack_allocate_init (size_t stack_space_size)
| Task stack allocator initialization for CONFIGURE_TASK_STACK_ALLOCATOR_INIT.
void * | bsp_stack_allocate (size_t size)
| Task stack allocator for CONFIGURE_TASK_STACK_ALLOCATOR.
void | bsp_stack_free (void *stack)
| Task stack free function for CONFIGURE_TASK_STACK_DEALLOCATOR.

## Detailed Description

Task stack initialization, allocation and free functions.

Initialize the task stack allocator with bsp_stack_initialize(). To enable the task stack allocator use the following in the system configuration:

#include <bsp/stackalloc.h>
#define CONFIGURE_INIT
#include <confdefs.h>
confdefs.h
Evaluate Configuration Options.
stackalloc.h
Task stack initialization, allocation and free functions.

## Function Documentation

## ◆ bsp_stack_allocate()

void * bsp_stack_allocate | ( | size_t | size | ) |

Task stack allocator for CONFIGURE_TASK_STACK_ALLOCATOR.

In case the designated task stack space from bsp_stack_initialize() is completely in use the work space will be used to allocate the stack.