API Reference Manual  1.45.0
api/spec/init.h File Reference
#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>
Include dependency graph for api/spec/init.h:
This graph shows which files directly or indirectly include this file:

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,...)
 Replaceable logging function.
 
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 log function. More...
 
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...
 
int odp_instance (odp_instance_t *instance)
 Get instance handle. More...