|
EM-ODP
3.7.0
Event Machine on ODP
|
17 for (
int i = 0; i < EM_MAX_CORES; i++) {
35 static bool poll_drain_check_local(
int core_id,
const em_core_mask_t *mask)
98 shm = odp_shm_lookup(
"em_shm");
101 "Shared memory lookup failed!");
103 shm_addr = odp_shm_addr(shm);
105 "Shared memory ptr NULL");
107 if (shm_addr->conf.process_per_core &&
em_shm == NULL)
111 "Shared memory init fails: em_shm:%p != shm_addr:%p",
116 "Ext emcli_init_local() fails: %" PRI_STAT
"", stat);
131 em_queue_t unsched_queue;
134 unsched_queue = queue_id2hdl(FIRST_INTERNAL_UNSCHED_QUEUE + core);
137 q_elem = queue_elem_get(unsched_queue);
138 if (unlikely(!q_elem))
144 unsched_queue = queue_id2hdl(SHARED_INTERNAL_UNSCHED_QUEUE);
147 q_elem = queue_elem_get(unsched_queue);
148 if (unlikely(!q_elem))
em_status_t emcli_init_local(void)
Initialize the EM CLI locally on an EM core (if enabled)
em_status_t init_ext_thread(void)
int(* em_log_func_t)(em_log_level_t level, const char *fmt,...) __attribute__((format(printf
struct em_conf_t::@5 output
ENV_LOCAL em_locm_t em_locm
void core_vlog_fn_set(em_vlog_func_t func)
int em_core_mask_isset(int core, const em_core_mask_t *mask)
int em_core_mask_iszero(const em_core_mask_t *mask)
em_queue_t shared_unsched_queue
em_output_drain_func_t output_drain_fn
odp_queue_t core_odp_plain_queue
#define RETURN_ERROR_IF(cond, error, escope, fmt,...)
void core_log_fn_set(em_log_func_t func)
struct em_conf_t::@4 input
em_input_poll_func_t input_poll_fn
em_core_mask_t input_poll_mask
@ EM_ERR_OPERATION_FAILED
queue_elem_t * core_unsched_qelem
queue_elem_t * shared_unsched_qelem
em_queue_t core_unsched_queue
int(*) typedef int(* em_vlog_func_t)(em_log_level_t level, const char *fmt, va_list args)
#define EM_ESCOPE_INIT_CORE
em_core_mask_t output_drain_mask
odp_queue_t shared_odp_plain_queue