RTEMS 6.1-rc6
Loading...
Searching...
No Matches
Macros | Functions
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...

#include <rtems/rtems/support.h>
#include <rtems/score/apimutex.h>
#include <rtems/score/heapimpl.h>
#include <rtems/score/threaddispatch.h>
#include <rtems/score/wkspace.h>
#include <rtems/malloc.h>

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

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