VSF Documented
Functions | Variables
vsf_pbuf_pool.c File Reference
#include "service/vsf_service_cfg.h"
#include "./vsf_pbuf_pool.h"

Functions

void vsf_pbuf_pool_init (vsf_pbuf_pool_t *this_ptr, uint32_t u32_item_size, uint_fast16_t u16_align, vsf_pool_cfg_t *pcfg)
 
bool vsf_pbuf_pool_add_buffer (vsf_pbuf_pool_t *this_ptr, void *buffer_ptr, uint_fast32_t u32_size, uint_fast16_t u16_item_size)
 
vsf_pbuf_t * vsf_pbuf_pool_alloc (vsf_pbuf_pool_t *this_ptr)
 
void vsf_pbuf_pool_free (vsf_pbuf_pool_t *this_ptr, vsf_pbuf_t *item_ptr)
 
uint_fast32_t vsf_pbuf_get_pool_item_count (vsf_pbuf_pool_t *this_ptr)
 
vsf_protect_region_tvsf_pbuf_pool_get_region (vsf_pbuf_pool_t *this_ptr)
 
uintptr_t vsf_pbuf_pool_get_target (vsf_pbuf_pool_t *this_ptr)
 

Variables

const i_pbuf_methods_t VSF_PBUF_ADAPTER_METHODS_STREAM_SRC
 

Function Documentation

◆ vsf_pbuf_pool_init()

void vsf_pbuf_pool_init ( vsf_pbuf_pool_t this_ptr,
uint32_t  u32_item_size,
uint_fast16_t  u16_align,
vsf_pool_cfg_t pcfg 
)

◆ vsf_pbuf_pool_add_buffer()

bool vsf_pbuf_pool_add_buffer ( vsf_pbuf_pool_t this_ptr,
void *  buffer_ptr,
uint_fast32_t  u32_size,
uint_fast16_t  u16_item_size 
)

◆ vsf_pbuf_pool_alloc()

vsf_pbuf_t * vsf_pbuf_pool_alloc ( vsf_pbuf_pool_t this_ptr)

◆ vsf_pbuf_pool_free()

void vsf_pbuf_pool_free ( vsf_pbuf_pool_t this_ptr,
vsf_pbuf_t *  item_ptr 
)

◆ vsf_pbuf_get_pool_item_count()

uint_fast32_t vsf_pbuf_get_pool_item_count ( vsf_pbuf_pool_t this_ptr)

◆ vsf_pbuf_pool_get_region()

vsf_protect_region_t * vsf_pbuf_pool_get_region ( vsf_pbuf_pool_t this_ptr)

◆ vsf_pbuf_pool_get_target()

uintptr_t vsf_pbuf_pool_get_target ( vsf_pbuf_pool_t this_ptr)

Variable Documentation

◆ VSF_PBUF_ADAPTER_METHODS_STREAM_SRC

const i_pbuf_methods_t VSF_PBUF_ADAPTER_METHODS_STREAM_SRC
Initial value:
= {
.Free = &__vsf_stream_src_pbuf_free,
}