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

#include <event_machine_pool.h>

Collaboration diagram for em_pool_info_t:

Data Fields

char name [EM_POOL_NAME_LEN]
 
em_pool_t em_pool
 
em_event_type_t event_type
 
uint32_t align_offset
 
size_t user_area_size
 
em_pool_stats_opt_t stats_opt
 
int num_subpools
 
struct { 
 
   uint32_t   size 
 
   uint32_t   num 
 
   uint32_t   cache_size 
 
   uint32_t   used 
 
   uint32_t   free 
 
subpool [EM_MAX_SUBPOOLS
 

Detailed Description

EM pool information and usage statistics

Examples
bench_pool.c, and event_types.c.

Definition at line 337 of file event_machine_pool.h.

Field Documentation

◆ align_offset

uint32_t em_pool_info_t::align_offset

Event payload alignment offset for events from the pool

Definition at line 345 of file event_machine_pool.h.

◆ cache_size

uint32_t em_pool_info_t::cache_size

Max number of locally cached subpool events per EM-core

Definition at line 358 of file event_machine_pool.h.

◆ em_pool

em_pool_t em_pool_info_t::em_pool

EM pool handle

Definition at line 341 of file event_machine_pool.h.

◆ event_type

em_event_type_t em_pool_info_t::event_type

Event type of events allocated from the pool

Examples
event_types.c.

Definition at line 343 of file event_machine_pool.h.

◆ free

uint32_t em_pool_info_t::free

Number of events free in the subpool. Only if the 'available' or 'cache_available' is set to true in 'pool.statistics' of EM config file or in 'em_pool_cfg_t::stats_opt::opt' given to function em_pool_create(..., pool_cfg), otherwise .free=0.

Definition at line 374 of file event_machine_pool.h.

◆ name

char em_pool_info_t::name[EM_POOL_NAME_LEN]

Definition at line 339 of file event_machine_pool.h.

◆ num

uint32_t em_pool_info_t::num

Number of events in the subpool

Definition at line 356 of file event_machine_pool.h.

◆ num_subpools

int em_pool_info_t::num_subpools

Number of subpools within one EM pool, max=EM_MAX_SUBPOOLS

Definition at line 351 of file event_machine_pool.h.

◆ size

uint32_t em_pool_info_t::size

Event payload size of the subpool

Definition at line 354 of file event_machine_pool.h.

◆ stats_opt

em_pool_stats_opt_t em_pool_info_t::stats_opt

The statistic options used during pool creation

Definition at line 349 of file event_machine_pool.h.

◆ used

uint32_t em_pool_info_t::used

Number of events allocated from the subpool. Only if the 'available' or 'cache_available' is set to true in 'pool.statistics' of EM config file or in 'em_pool_cfg_t::stats_opt::opt' given to function em_pool_create(..., pool_cfg), otherwise .used=0.

Definition at line 366 of file event_machine_pool.h.

◆ user_area_size

size_t em_pool_info_t::user_area_size

Event user area size for events from the pool

Definition at line 347 of file event_machine_pool.h.


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