NimBLE-Arduino 2.1.2
Loading...
Searching...
No Matches
k_mem_slab Struct Reference

#include <glue.h>

Public Attributes

uint32_t num_blocks
 
size_t block_size
 
char * buffer
 
uint32_t num_used
 

Detailed Description

Memory slab structure

Member Data Documentation

◆ block_size

size_t k_mem_slab::block_size

number of memory blocks available for allocation

◆ buffer

char* k_mem_slab::buffer

size of single block buffer for blocks - must be alligned to N-byte, where N is a power of 2. Minimal size of buffer is num_blocks * block_size

◆ num_blocks

uint32_t k_mem_slab::num_blocks

_wait_q_t is not required now, as we don't implement zephyr timeouts - if slab couldn't be allocated, we simply return error

◆ num_used

uint32_t k_mem_slab::num_used

list of free memory blocks