EM-ODP 4.4.0
Event Machine on ODP
Loading...
Searching...
No Matches
em_event_uarea_info_t Struct Reference

Event user area information filled by em_event_uarea_info() More...

#include <event_machine_event.h>

Data Fields

void * uarea
 
size_t size
 
struct { 
 
   bool   isset 
 
   uint16_t   value 
 
id 
 

Detailed Description

Event user area information filled by em_event_uarea_info()

Output structure for obtaining information about an event's user area. Information related to the user area will be filled into this struct by the em_event_uarea_info() API function.

A user area is only present if the EM pool the event was allocated from was created with user area size > 0, see em_pool_cfg_t and em_pool_create(). The user area ID can always be used (set/get), even when the size of the user area is zero(0).

See also
em_event_uarea_info(), em_event_uarea_id_set()
Examples
bench_event.c, and queue_types_ag.c.

Definition at line 1058 of file event_machine_event.h.

Field Documentation

◆ [struct]

struct { ... } em_event_uarea_info_t::id

Event user area ID (ID can be set/get even when no uarea present)

Examples
queue_types_ag.c.

◆ isset

bool em_event_uarea_info_t::isset

Boolean: has the ID been set previously? true/false

Definition at line 1067 of file event_machine_event.h.

◆ size

size_t em_event_uarea_info_t::size

Size of the event user area, zero(0) if event has no user area

Definition at line 1062 of file event_machine_event.h.

◆ uarea

void* em_event_uarea_info_t::uarea

Pointer to the event user area, NULL if event has no user area

Examples
queue_types_ag.c.

Definition at line 1060 of file event_machine_event.h.

◆ value

uint16_t em_event_uarea_info_t::value

Value of the user area ID, if (and only if) set before. Only inspect '.id.value' when '.id.isset=true' indicating that ID has been set earlier by em_event_uarea_id_set().

Examples
queue_types_ag.c.

Definition at line 1072 of file event_machine_event.h.


The documentation for this struct was generated from the following file: