RTEMS: cpukit/include/rtems/score/freechain.h File Reference

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
Data Structures | Typedefs | Functions
freechain.h File Reference
Internal » SuperCore » Freechain Handler

Freechain Handler API. More...

`#include <rtems/score/basedefs.h>`
`#include <rtems/score/chainimpl.h>`

Go to the source code of this file.

## Data Structures
struct | Freechain_Control
| The freechain control. More...

## Typedefs
typedef void *(* | Freechain_Allocator) (size_t size)
| Allocator function.

## Functions
RTEMS_INLINE_ROUTINE void | _Freechain_Initialize (Freechain_Control *freechain, void *initial_nodes, size_t number_nodes, size_t node_size)
| Initializes a freechain.
RTEMS_INLINE_ROUTINE bool | _Freechain_Is_empty (const Freechain_Control *freechain)
| Return true if the freechain is empty, otherwise false.
RTEMS_INLINE_ROUTINE void * | _Freechain_Pop (Freechain_Control *freechain)
| Pop an item from the freechain.
void * | _Freechain_Extend (Freechain_Control *freechain, Freechain_Allocator allocator, size_t number_nodes_to_extend, size_t node_size)
| Extend the freechain with new nodes.
void * | _Freechain_Get (Freechain_Control *freechain, Freechain_Allocator allocator, size_t number_nodes_to_extend, size_t node_size)
| Gets a node from the freechain.
void | _Freechain_Put (Freechain_Control *freechain, void *node)
| Puts a node back onto the freechain.

## Detailed Description

Freechain Handler API.