RTEMS 6.1-rc5
Loading...
Searching...
No Matches
Macros | Functions
rbheap.c File Reference

This source file contains the implementation of rtems_rbheap_allocate(), rtems_rbheap_extend_descriptors_never(), rtems_rbheap_extend_descriptors_with_malloc(), rtems_rbheap_free(), and rtems_rbheap_initialize(). More...

#include <rtems/rbheap.h>
#include <stdlib.h>

Macros

#define NULL_PAGE   rtems_rbheap_chunk_of_node(NULL)
 

Functions

rtems_status_code rtems_rbheap_initialize (rtems_rbheap_control *control, void *area_begin, uintptr_t area_size, uintptr_t alignment, rtems_rbheap_extend_descriptors extend_descriptors, void *handler_arg)
 Initializes the red-black tree heap control.
 
void * rtems_rbheap_allocate (rtems_rbheap_control *control, size_t size)
 Allocates a chunk of memory of at least size bytes from the red-black tree heap control.
 
rtems_status_code rtems_rbheap_free (rtems_rbheap_control *control, void *ptr)
 Frees a chunk of memory ptr allocated from the red-black tree heap control.
 
void rtems_rbheap_extend_descriptors_never (rtems_rbheap_control *control)
 Chunk descriptor extend handler that does nothing.
 
void rtems_rbheap_extend_descriptors_with_malloc (rtems_rbheap_control *control)
 Chunk descriptor extend handler that uses malloc().
 

Detailed Description

This source file contains the implementation of rtems_rbheap_allocate(), rtems_rbheap_extend_descriptors_never(), rtems_rbheap_extend_descriptors_with_malloc(), rtems_rbheap_free(), and rtems_rbheap_initialize().