EM-ODP  3.7.0
Event Machine on ODP
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
em_event.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

 COMPILE_TIME_ASSERT ((uintptr_t) EM_EVENT_UNDEF==(uintptr_t) ODP_EVENT_INVALID, EM_EVENT_NOT_EQUAL_TO_ODP_EVENT)
 
 COMPILE_TIME_ASSERT (EM_TMO_TYPE_NONE==0, "EM_TMO_TYPE_NONE must be 0")
 
em_status_t event_init (void)
 
void print_event_info (void)
 
em_event_t pkt_clone_odp (odp_packet_t pkt, odp_pool_t pkt_pool, uint32_t offset, uint32_t size, bool is_clone_part)
 
void output_queue_track (queue_elem_t *const output_q_elem)
 
void output_queue_drain (const queue_elem_t *output_q_elem)
 
void output_queue_buffering_drain (void)
 
uint32_t event_vector_tbl (em_event_t vector_event, em_event_t **event_tbl)
 
em_status_t event_vector_max_size (em_event_t vector_event, uint32_t *max_size, em_escope_t escope)
 

Detailed Description

EM internal event functions

Definition in file em_event.h.

Function Documentation

◆ pkt_clone_odp()

em_event_t pkt_clone_odp ( odp_packet_t  pkt,
odp_pool_t  pkt_pool,
uint32_t  offset,
uint32_t  size,
bool  is_clone_part 
)

Helper for em_event_clone().

Clone an event originating from an external odp pkt-pool. Initialize the new cloned event as an EM event and return it.

Alloc and copy content via ODP. Also the ev_hdr in the odp-pkt user_area is copied.

Definition at line 105 of file em_event.c.