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_netlink.h
Go to the documentation of this file.
1
44#ifndef RTE_OS_NETLINK_H
45#define RTE_OS_NETLINK_H
46
49
50#ifdef __cplusplus
51extern "C" {
52#endif
53
55RTE_DECLARE_STORAGE(rte_netlink_storage_t, 64U);
56
58typedef struct rte_netlink_impl_s *rte_netlink_handle_t;
59
69typedef enum rte_netlink_role_e
70{
74
76typedef struct rte_netlink_config_s
77{
83 const char *host;
85 uint16_t port;
98 uint32_t rcvbuf_bytes;
101 uint32_t sndbuf_bytes;
103
123rte_status_t rte_netlink_open(rte_netlink_storage_t *storage,
124 const rte_netlink_config_t *config,
125 rte_netlink_handle_t *out_handle);
126
143 const void *message,
144 size_t message_size,
145 rte_duration_ms_t timeout_ms);
146
164 void *out_message,
165 size_t buffer_size,
166 rte_duration_ms_t timeout_ms);
167
176
177/*
178 * The OSAdapter vtable (rte_osadapter_netlink_t) and
179 * rte_osadapter_netlink_register() live in
180 * rte_osadapter/netlink/rte_osadapter_netlink.h, not here (ADR-021). This
181 * header is the consumer-facing surface only.
182 */
183
184#ifdef __cplusplus
185}
186#endif
187
188#endif /* RTE_OS_NETLINK_H */
189 /* NETLINK */
rte_status_t
Common result/status codes.
Definition rte_status.h:27
#define RTE_DECLARE_STORAGE(type_name, byte_size)
Declares an opaque, fixed-size, aligned storage type for a service's handle. The real internal layout...
Definition rte_types.h:69
uint32_t rte_duration_ms_t
Definition rte_types.h:27
Common status/error codes returned by every Safe API Framework function. Shared across all OS Abstrac...
Common fixed-width types and the caller-owned-storage handle pattern used by every OAL service (see A...