|
Safe API Framework 0.1.0 build 384e6ae
Layered API framework for safety-related applications (ERTMS RBC reference targeting CENELEC EN 50128 SIL 4)
|
Memory pool service: validates parameters, then dispatches to the OSAdapter registered via rte_osadapter_memory_register() (ADR-005). More...
#include "rte/oal/memory/rte_memory.h"#include "rte/utils/lifecycle/rte_lifecycle.h"#include "rte_osadapter/memory/rte_osadapter_memory.h"Go to the source code of this file.
Functions | |
| rte_status_t | rte_osadapter_memory_register (const rte_osadapter_memory_t *osadapter) |
| Registers the OSAdapter memory implementation. | |
| rte_status_t | rte_mem_pool_create (rte_mem_pool_storage_t *storage, const rte_mem_pool_config_t *config, rte_mem_pool_handle_t *out_handle) |
| Reserves a fixed-size-block memory pool. | |
| rte_status_t | rte_mem_pool_acquire (rte_mem_pool_handle_t handle, void **out_block) |
| Acquires one fixed-size block from the pool. | |
| rte_status_t | rte_mem_pool_release (rte_mem_pool_handle_t handle, void *block) |
| Returns a previously acquired block to its pool. | |
| rte_status_t | rte_mem_pool_stats (rte_mem_pool_handle_t handle, size_t *out_free_blocks, size_t *out_used_blocks) |
| Reports current free/used block counts for diagnostics. | |
Variables | |
| static const rte_osadapter_memory_t * | s_osadapter = NULL |
| Currently registered OSAdapter, or NULL if none (ADR-005). | |
Memory pool service: validates parameters, then dispatches to the OSAdapter registered via rte_osadapter_memory_register() (ADR-005).
Definition in file rte_memory.c.
| rte_status_t rte_osadapter_memory_register | ( | const rte_osadapter_memory_t * | adapter | ) |
Registers the OSAdapter memory implementation.
Global variables declarations Local function declarations Global functions
| adapter | Pointer to memory operations vtable. |
REQ-OAL-MEM-014: Follows the OSAdapter-registration contract (ADR-005 section 2.1): a NULL adapter is rejected with RTE_STATUS_INVALID_PARAM; re-registering replaces the previous OSAdapter.
Definition at line 25 of file rte_memory.c.
|
static |
Currently registered OSAdapter, or NULL if none (ADR-005).
Local makros Local types declarations Local variables declarations
Definition at line 17 of file rte_memory.c.