Safe API Framework
0.1.0 build 384e6ae
Layered API framework for safety-related applications (ERTMS RBC reference targeting CENELEC EN 50128 SIL 4)
Toggle main menu visibility
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
10
#include "
rte/oal/memory/rte_memory.h
"
11
#include "
rte/utils/status/rte_status.h
"
12
13
#ifdef __cplusplus
14
extern
"C"
{
15
#endif
16
25
typedef
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);
34
}
rte_osadapter_memory_t
;
35
45
rte_status_t
rte_osadapter_memory_register
(
const
rte_osadapter_memory_t
*adapter);
46
47
48
#ifdef __cplusplus
49
}
50
#endif
51
52
#endif
/* RTE_OSADAPTER_MEMORY_H */
rte_mem_pool_handle_t
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
rte_status_t
Common result/status codes.
Definition
rte_status.h:27
rte_memory.h
OS Abstraction Layer - Static memory reservation service.
rte_osadapter_memory_register
rte_status_t rte_osadapter_memory_register(const rte_osadapter_memory_t *adapter)
Registers the OSAdapter memory implementation.
Definition
rte_memory.c:25
rte_status.h
Common status/error codes returned by every Safe API Framework function. Shared across all OS Abstrac...
rte_mem_pool_config_t
Configuration for rte_mem_pool_create().
Definition
rte_memory.h:36
rte_osadapter_memory_t
OSAdapter memory pool operations vtable.
Definition
rte_osadapter_memory.h:26
include
rte_osadapter
memory
rte_osadapter_memory.h
Generated by
1.18.0