|
Safe API Framework 0.1.0 build 384e6ae
Layered API framework for safety-related applications (ERTMS RBC reference targeting CENELEC EN 50128 SIL 4)
|
Reboot service: dispatches to the OSAdapter registered via rte_osadapter_reboot_register() (ADR-005). More...
#include "rte/oal/reboot/rte_reboot.h"#include "rte/utils/lifecycle/rte_lifecycle.h"#include "rte_osadapter/reboot/rte_osadapter_reboot.h"Go to the source code of this file.
Functions | |
| rte_status_t | rte_osadapter_reboot_register (const rte_osadapter_reboot_t *osadapter) |
| Registers the OSAdapter reboot implementation. | |
| rte_status_t | rte_reboot_request (uint16_t reason_code) |
| Requests a controlled system restart. | |
Variables | |
| static const rte_osadapter_reboot_t * | s_osadapter = NULL |
| Currently registered OSAdapter, or NULL if none (ADR-005). | |
Reboot service: dispatches to the OSAdapter registered via rte_osadapter_reboot_register() (ADR-005).
Definition in file rte_reboot.c.
| rte_status_t rte_osadapter_reboot_register | ( | const rte_osadapter_reboot_t * | adapter | ) |
Registers the OSAdapter reboot implementation.
Global variables declarations Local function declarations Global functions
| adapter | Pointer to reboot operations vtable. |
REQ-OAL-REBOOT-011: 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_reboot.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_reboot.c.