nrf_balloc_t

nRF5 SDK v12.2.0

Block memory allocator pool instance. The pool is made of elements of the same size. More...

#include <nrf_balloc.h>

Data Fields

nrf_balloc_cb_t * p_cb
Pointer to the instance control block.
uint8_t * p_stack_base
Base of the allocation stack. More...
uint8_t * p_stack_limit
Maximum possible value of the allocation stack pointer.
void * p_memory_begin
Pointer to the start of the memory pool. More...
uint16_t block_size
Size of the allocated block (including debug overhead). More...

Detailed Description

Block memory allocator pool instance. The pool is made of elements of the same size.

Field Documentation

uint16_t nrf_balloc_t::block_size

Size of the allocated block (including debug overhead).

Single block contains user element with header and tail words.

void* nrf_balloc_t::p_memory_begin

Pointer to the start of the memory pool.

Memory is used as a heap for blocks.

uint8_t* nrf_balloc_t::p_stack_base

Base of the allocation stack.

Stack is used to store handlers to not allocated elements.

  • components/libraries/balloc/nrf_balloc.h