Safe API Framework
Layered API framework for safety-related applications (ERTMS RBC reference targeting CENELEC EN 50128 SIL 4)
Loading...
Searching...
No Matches
Static Memory Reservation - Backend Adaptation

Backend vtable and registration for the memory pool service (ADR-005). More...

Data Structures

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

Functions

sapi_status_t sapi_mem_pool_register_backend (const sapi_mem_pool_backend_t *backend)
 Registers the backend implementation used by every sapi_mem_pool_* call (ADR-005 section 2.1). Call once at startup.

Detailed Description

Backend vtable and registration for the memory pool service (ADR-005).

Function Documentation

◆ sapi_mem_pool_register_backend()

sapi_status_t sapi_mem_pool_register_backend ( const sapi_mem_pool_backend_t * backend)

Registers the backend implementation used by every sapi_mem_pool_* call (ADR-005 section 2.1). Call once at startup.

Parameters
backendVtable of backend function pointers. Must not be NULL.
Returns
SAPI_STATUS_INVALID_PARAM if backend is NULL; SAPI_STATUS_OK otherwise. REQ-OAL-MEM-014

Global variables declarations Local function declarations Global functions

Definition at line 25 of file sapi_memory.c.