RTEMS 6.3
Loading...
Searching...
No Matches
workspacegreedy.c File Reference

This source file contains the implementation of rtems_workspace_greedy_allocate(), rtems_workspace_greedy_allocate_all_except_largest(), and rtems_workspace_greedy_free(). More...

Macros

#define SBRK_ALLOC_SIZE   (128 * 1024UL * 1024UL)

Functions

void * rtems_workspace_greedy_allocate (const uintptr_t *block_sizes, size_t block_count)
 Greedy allocates that empties the RTEMS Workspace.
void * rtems_workspace_greedy_allocate_all_except_largest (uintptr_t *allocatable_size)
 Greedy allocates all blocks of the RTEMS Workspace except the largest free block.
void rtems_workspace_greedy_free (void *opaque)
 Frees space of a greedy allocation to the RTEMS Workspace.

Detailed Description