API Reference Manual
1.46.0
|
#include <odp/visibility_begin.h>
#include <odp/api/std_types.h>
#include <odp/api/hints.h>
#include <odp/api/thread_types.h>
#include <odp/api/cpumask.h>
#include <odp/visibility_end.h>
Go to the source code of this file.
Data Structures | |
struct | odp_init_t |
Global initialization parameters. More... | |
Macros | |
#define | ODP_TERM_FROM_SIGH ((uint64_t)0x1) |
Called from signal handler. | |
#define | ODP_TERM_LAST_FLAG ODP_TERM_FROM_SIGH |
Last standard flag for abnormal terminate. More... | |
Typedefs | |
typedef int(* | odp_log_func_t) (odp_log_level_t level, const char *fmt,...) ODP_PRINTF_FORMAT(2 |
Replaceable logging function. | |
typedef int(*) typedef void(* | odp_abort_func_t) (void) ODP_NORETURN |
Replaceable abort function. | |
typedef struct odp_init_t | odp_init_t |
Global initialization parameters. More... | |
Enumerations | |
enum | odp_log_level_t { ODP_LOG_DBG , ODP_LOG_WARN , ODP_LOG_ERR , ODP_LOG_UNIMPLEMENTED , ODP_LOG_ABORT , ODP_LOG_PRINT } |
ODP log level. More... | |
enum | odp_mem_model_t { ODP_MEM_MODEL_THREAD = 0 , ODP_MEM_MODEL_PROCESS } |
Application memory model. More... | |
Functions | |
int | odp_override_log (odp_log_level_t level, const char *fmt,...) ODP_PRINTF_FORMAT(2 |
ODP log function. More... | |
int void | odp_override_abort (void) ODP_NORETURN |
ODP abort function. More... | |
void | odp_init_param_init (odp_init_t *param) |
Initialize the odp_init_t to default values for all fields. More... | |
int | odp_init_global (odp_instance_t *instance, const odp_init_t *params, const odp_platform_init_t *platform_params) |
Global ODP initialization. More... | |
int | odp_init_local (odp_instance_t instance, odp_thread_type_t thr_type) |
Thread local ODP initialization. More... | |
int | odp_term_local (void) |
Thread local ODP termination. More... | |
int | odp_term_global (odp_instance_t instance) |
Global ODP termination. More... | |
int | odp_term_abnormal (odp_instance_t instance, uint64_t flags, void *data) |
Abnormal ODP termination after a non-recoverable error. More... | |
void | odp_log_thread_fn_set (odp_log_func_t func) |
Set thread specific log function. More... | |
odp_log_func_t | odp_log_fn_get (void) |
Get current log function. More... | |
odp_abort_func_t | odp_abort_fn_get (void) |
Get abort function. More... | |
int | odp_instance (odp_instance_t *instance) |
Get instance handle. More... | |
uint64_t | odp_instance_to_u64 (odp_instance_t instance) |
Get printable value for ODP instance handle. More... | |