|
Safe API Framework 0.1.0 build 384e6ae
Layered API framework for safety-related applications (ERTMS RBC reference targeting CENELEC EN 50128 SIL 4)
|
NVM service: validates parameters, then dispatches to the OSAdapter registered via rte_osadapter_nvm_register() (ADR-005). More...
#include "rte/oal/nvm/rte_nvm.h"#include "rte/utils/lifecycle/rte_lifecycle.h"#include "rte_osadapter/nvm/rte_osadapter_nvm.h"Go to the source code of this file.
Functions | |
| rte_status_t | rte_osadapter_nvm_register (const rte_osadapter_nvm_t *osadapter) |
| Registers the OSAdapter NVM implementation. | |
| rte_status_t | rte_nvm_open (rte_nvm_storage_t *storage, const rte_nvm_config_t *config, rte_nvm_handle_t *out_handle) |
| Opens (creating if necessary) a named NVM region. | |
| rte_status_t | rte_nvm_read (rte_nvm_handle_t handle, size_t offset, void *out_buffer, size_t buffer_size) |
| Reads and integrity-checks data from an NVM region. | |
| rte_status_t | rte_nvm_write (rte_nvm_handle_t handle, size_t offset, const void *buffer, size_t buffer_size) |
| Writes data and its integrity metadata to an NVM region. | |
| rte_status_t | rte_nvm_sync (rte_nvm_handle_t handle) |
| Forces any buffered writes to durable storage. | |
| rte_status_t | rte_nvm_close (rte_nvm_handle_t handle) |
| Closes an NVM region handle. | |
Variables | |
| static const rte_osadapter_nvm_t * | s_osadapter = NULL |
| Currently registered OSAdapter, or NULL if none (ADR-005). | |
NVM service: validates parameters, then dispatches to the OSAdapter registered via rte_osadapter_nvm_register() (ADR-005).
Definition in file rte_nvm.c.
| rte_status_t rte_osadapter_nvm_register | ( | const rte_osadapter_nvm_t * | adapter | ) |
Registers the OSAdapter NVM implementation.
Global variables declarations Local function declarations Global functions
| adapter | Pointer to NVM operations vtable. |
REQ-OAL-NVM-015: 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.
|
static |