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_memory.h
Go to the documentation of this file.
1
7#ifndef RTE_OSADAPTER_MEMORY_H
8#define RTE_OSADAPTER_MEMORY_H
9
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
25typedef struct rte_osadapter_memory_s
26{
27 rte_status_t (*create)(rte_mem_pool_storage_t *storage,
28 const rte_mem_pool_config_t *config,
29 rte_mem_pool_handle_t *out_handle);
30 rte_status_t (*acquire)(rte_mem_pool_handle_t handle, void **out_block);
31 rte_status_t (*release)(rte_mem_pool_handle_t handle, void *block);
32 rte_status_t (*stats)(rte_mem_pool_handle_t handle,
33 size_t *out_free_blocks, size_t *out_used_blocks);
35
46
47
48#ifdef __cplusplus
49}
50#endif
51
52#endif /* RTE_OSADAPTER_MEMORY_H */
struct rte_mem_pool_impl_s * rte_mem_pool_handle_t
Opaque handle to a reserved pool, returned by rte_mem_pool_create().
Definition rte_memory.h:32
rte_status_t
Common result/status codes.
Definition rte_status.h:27
OS Abstraction Layer - Static memory reservation service.
rte_status_t rte_osadapter_memory_register(const rte_osadapter_memory_t *adapter)
Registers the OSAdapter memory implementation.
Definition rte_memory.c:25
Common status/error codes returned by every Safe API Framework function. Shared across all OS Abstrac...
Configuration for rte_mem_pool_create().
Definition rte_memory.h:36
OSAdapter memory pool operations vtable.