Safe API Framework
Layered API framework for safety-related applications (ERTMS RBC reference targeting CENELEC EN 50128 SIL 4)
Loading...
Searching...
No Matches
sapi_mem_pool_backend_t Struct Reference

Backend vtable: an integrator's implementation of the memory pool service (ADR-005). Any slot may be NULL if unsupported by the backend (-> SAPI_STATUS_NOT_SUPPORTED). More...

#include <sapi_memory_backend.h>

Data Fields

sapi_status_t(*) create (sapi_mem_pool_storage_t *storage, const sapi_mem_pool_config_t *config, sapi_mem_pool_handle_t *out_handle)
 Backend implementation of sapi_mem_pool_create(). May be NULL.
sapi_status_t(*) acquire (sapi_mem_pool_handle_t handle, void **out_block)
 Backend implementation of sapi_mem_pool_acquire(). May be NULL.
sapi_status_t(*) release (sapi_mem_pool_handle_t handle, void *block)
 Backend implementation of sapi_mem_pool_release(). May be NULL.
sapi_status_t(*) stats (sapi_mem_pool_handle_t handle, size_t *out_free_blocks, size_t *out_used_blocks)
 Backend implementation of sapi_mem_pool_stats(). May be NULL.

Detailed Description

Backend vtable: an integrator's implementation of the memory pool service (ADR-005). Any slot may be NULL if unsupported by the backend (-> SAPI_STATUS_NOT_SUPPORTED).

Definition at line 31 of file sapi_memory_backend.h.

Field Documentation

◆ create

sapi_status_t(*) sapi_mem_pool_backend_t::create(sapi_mem_pool_storage_t *storage, const sapi_mem_pool_config_t *config, sapi_mem_pool_handle_t *out_handle)

Backend implementation of sapi_mem_pool_create(). May be NULL.

Definition at line 34 of file sapi_memory_backend.h.

◆ acquire

sapi_status_t(*) sapi_mem_pool_backend_t::acquire(sapi_mem_pool_handle_t handle, void **out_block)

Backend implementation of sapi_mem_pool_acquire(). May be NULL.

Definition at line 38 of file sapi_memory_backend.h.

◆ release

sapi_status_t(*) sapi_mem_pool_backend_t::release(sapi_mem_pool_handle_t handle, void *block)

Backend implementation of sapi_mem_pool_release(). May be NULL.

Definition at line 40 of file sapi_memory_backend.h.

◆ stats

sapi_status_t(*) sapi_mem_pool_backend_t::stats(sapi_mem_pool_handle_t handle, size_t *out_free_blocks, size_t *out_used_blocks)

Backend implementation of sapi_mem_pool_stats(). May be NULL.

Definition at line 42 of file sapi_memory_backend.h.


The documentation for this struct was generated from the following file: