SafeAPI Backend POSIX
POSIX/Linux OAL backend for safeAPIFreamwork
Loading...
Searching...
No Matches
sapi_posix_backend.c
Go to the documentation of this file.
1
7
9
11
13
15
17
18
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}
Real POSIX/Linux backend for every OAL service (ADR-018).
const sapi_netlink_backend_t * sapi_posix_backend_netlink(void)
The POSIX sapi_netlink backend (TCP sockets, LISTEN/CONNECT).
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,...
const sapi_log_backend_t * sapi_posix_backend_log(void)
The POSIX sapi_log backend (non-blocking write to stderr).
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,...
const sapi_ipc_backend_t * sapi_posix_backend_ipc(void)
The POSIX sapi_ipc backend (pipe() per channel).
const sapi_task_backend_t * sapi_posix_backend_task(void)
The POSIX sapi_task backend (one pthread per task).
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...
const sapi_mutex_backend_t * sapi_posix_backend_mutex(void)
The POSIX sapi_mutex backend (a thin pthread_mutex_t wrapper, ADR-033).
const sapi_timer_backend_t * sapi_posix_backend_timer(void)
The POSIX sapi_timer backend (one pthread per timer).
const sapi_mem_pool_backend_t * sapi_posix_backend_memory(void)
The POSIX sapi_memory backend (static arena, no malloc).
const sapi_nvm_backend_t * sapi_posix_backend_nvm(void)
The POSIX sapi_nvm backend (file-backed, FNV-1a-64 integrity).