Safe API Framework 0.1.0 build 384e6ae
Layered API framework for safety-related applications (ERTMS RBC reference targeting CENELEC EN 50128 SIL 4)
Loading...
Searching...
No Matches
rte_osadapter_ipc.h File Reference

OSAdapter interface for inter-process communication. More...

#include <stddef.h>
#include "rte/oal/ipc/rte_ipc.h"
#include "rte/utils/status/rte_status.h"
#include "rte/utils/types/rte_types.h"
Include dependency graph for rte_osadapter_ipc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  rte_osadapter_ipc_t
 OSAdapter IPC operations vtable. More...

Functions

rte_status_t rte_osadapter_ipc_register (const rte_osadapter_ipc_t *adapter)
 Registers the OSAdapter IPC implementation.

Detailed Description

OSAdapter interface for inter-process communication.

Compliant with CENELEC EN 50128 SIL 4 and MISRA C:2012.

Definition in file rte_osadapter_ipc.h.

Function Documentation

◆ rte_osadapter_ipc_register()

rte_status_t rte_osadapter_ipc_register ( const rte_osadapter_ipc_t * osadapter)

Registers the OSAdapter IPC implementation.

Parameters
adapterPointer to IPC operations vtable.
Returns
RTE_STATUS_OK on success, RTE_STATUS_INVALID_PARAM if adapter is NULL, or RTE_STATUS_INVALID_STATE if the setup phase is already locked (REQ-LIFECYCLE-001, ADR-026; the previous registration, if any, is kept).

REQ-OAL-IPC-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.

Global variables declarations Local function declarations Global functions

Definition at line 25 of file rte_ipc.c.