nrf_balloc_t

nRF5 SDK v15.0.0

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

#include <nrf_balloc.h>

Public Member Functions

NRF_LOG_INSTANCE_PTR_DECLARE (p_log) uint16_t block_size
Size of the allocated block (including debug overhead). More...

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...

Detailed Description

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

Member Function Documentation

nrf_balloc_t::NRF_LOG_INSTANCE_PTR_DECLARE ( p_log )

Size of the allocated block (including debug overhead).

Single block contains user element with header and tail words.

Field Documentation

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