SafeAPI Backend POSIX
POSIX/Linux OAL backend for safeAPIFreamwork
Toggle main menu visibility
Loading...
Searching...
No Matches
sapi_posix_backend.c
Go to the documentation of this file.
1
6
#include "
safeapi/posix_backend/sapi_posix_backend.h
"
7
9
11
13
15
17
18
20
sapi_status_t
sapi_posix_backend_register_all
(
void
)
21
{
22
sapi_status_t status;
23
24
status = sapi_timer_register_backend(
sapi_posix_backend_timer
());
25
if
(status != SAPI_STATUS_OK)
26
{
27
return
status;
28
}
29
status = sapi_mutex_register_backend(
sapi_posix_backend_mutex
());
30
if
(status != SAPI_STATUS_OK)
31
{
32
return
status;
33
}
34
status = sapi_ipc_register_backend(
sapi_posix_backend_ipc
());
35
if
(status != SAPI_STATUS_OK)
36
{
37
return
status;
38
}
39
status = sapi_netlink_register_backend(
sapi_posix_backend_netlink
());
40
if
(status != SAPI_STATUS_OK)
41
{
42
return
status;
43
}
44
status = sapi_task_register_backend(
sapi_posix_backend_task
());
45
if
(status != SAPI_STATUS_OK)
46
{
47
return
status;
48
}
49
status = sapi_log_register_backend(
sapi_posix_backend_log
());
50
if
(status != SAPI_STATUS_OK)
51
{
52
return
status;
53
}
54
status = sapi_nvm_register_backend(
sapi_posix_backend_nvm
());
55
if
(status != SAPI_STATUS_OK)
56
{
57
return
status;
58
}
59
status = sapi_reboot_register_backend(
sapi_posix_backend_reboot
());
60
if
(status != SAPI_STATUS_OK)
61
{
62
return
status;
63
}
64
status = sapi_mem_pool_register_backend(
sapi_posix_backend_memory
());
65
if
(status != SAPI_STATUS_OK)
66
{
67
return
status;
68
}
69
status = sapi_platform_register_backend(
sapi_posix_backend_platform
());
70
if
(status != SAPI_STATUS_OK)
71
{
72
return
status;
73
}
74
75
return
SAPI_STATUS_OK;
76
}
sapi_posix_backend.h
Real POSIX/Linux backend for every OAL service (ADR-018).
sapi_posix_backend_netlink
const sapi_netlink_backend_t * sapi_posix_backend_netlink(void)
The POSIX sapi_netlink backend (TCP sockets, LISTEN/CONNECT).
Definition
sapi_posix_backend_netlink.c:658
sapi_posix_backend_register_all
sapi_status_t sapi_posix_backend_register_all(void)
Registers this file's POSIX backend with every OAL service in one call. Call once at process startup,...
Definition
sapi_posix_backend.c:20
sapi_posix_backend_log
const sapi_log_backend_t * sapi_posix_backend_log(void)
The POSIX sapi_log backend (non-blocking write to stderr).
Definition
sapi_posix_backend_log.c:37
sapi_posix_backend_platform
const sapi_platform_backend_t * sapi_posix_backend_platform(void)
The POSIX sapi_platform backend (ADR-035): real-time bring-up via mlockall() + SCHED_FIFO,...
Definition
sapi_posix_backend_platform.c:73
sapi_posix_backend_ipc
const sapi_ipc_backend_t * sapi_posix_backend_ipc(void)
The POSIX sapi_ipc backend (pipe() per channel).
Definition
sapi_posix_backend_ipc.c:211
sapi_posix_backend_task
const sapi_task_backend_t * sapi_posix_backend_task(void)
The POSIX sapi_task backend (one pthread per task).
Definition
sapi_posix_backend_task.c:273
sapi_posix_backend_reboot
const sapi_reboot_backend_t * sapi_posix_backend_reboot(void)
The POSIX sapi_reboot backend (execv() re-exec of the current process image, self-path resolved porta...
Definition
sapi_posix_backend_reboot.c:114
sapi_posix_backend_mutex
const sapi_mutex_backend_t * sapi_posix_backend_mutex(void)
The POSIX sapi_mutex backend (a thin pthread_mutex_t wrapper, ADR-033).
Definition
sapi_posix_backend_mutex.c:42
sapi_posix_backend_timer
const sapi_timer_backend_t * sapi_posix_backend_timer(void)
The POSIX sapi_timer backend (one pthread per timer).
Definition
sapi_posix_backend_timer.c:62
sapi_posix_backend_memory
const sapi_mem_pool_backend_t * sapi_posix_backend_memory(void)
The POSIX sapi_memory backend (static arena, no malloc).
Definition
sapi_posix_backend_memory.c:77
sapi_posix_backend_nvm
const sapi_nvm_backend_t * sapi_posix_backend_nvm(void)
The POSIX sapi_nvm backend (file-backed, FNV-1a-64 integrity).
Definition
sapi_posix_backend_nvm.c:336
src
sapi_posix_backend.c
Generated by
1.18.0