EM-ODP 4.4.0
Event Machine on ODP
Loading...
Searching...
No Matches
Error management

Macros

#define EM_ERROR_FATAL_MASK   0x80000000
 
#define EM_ERROR_IS_FATAL(error)   (!!(EM_ERROR_FATAL_MASK & (error)))
 
#define EM_ERROR_SET_FATAL(error)   (EM_ERROR_FATAL_MASK | (error))
 
#define EM_FATAL(error)   EM_ERROR_SET_FATAL((error))
 
#define PRI_STAT   PRIu32
 
#define PRIxSTAT   PRIx32
 
#define EM_OK   0
 
#define EM_ERROR   0xffffffff
 
#define PRI_ESCOPE   PRIu32
 
#define PRIxESCOPE   PRIx32
 
#define EM_ESCOPE_BIT   (0x80000000u)
 
#define EM_ESCOPE_API_TYPE   (0xFFu)
 
#define EM_ESCOPE_ADDON_API_TYPE   (0xFEu)
 
#define EM_ESCOPE_INTERNAL_TYPE   (0xFCu)
 
#define EM_ESCOPE_MASK   (0xFF000000)
 
#define EM_ESCOPE_API_MASK   (EM_ESCOPE_BIT | (EM_ESCOPE_API_TYPE << 24))
 
#define EM_ESCOPE_ADDON_API_MASK   (EM_ESCOPE_BIT | (EM_ESCOPE_ADDON_API_TYPE << 24))
 
#define EM_ESCOPE_INTERNAL_MASK   (EM_ESCOPE_BIT | (EM_ESCOPE_INTERNAL_TYPE << 24))
 
#define EM_ESCOPE(escope)   (EM_ESCOPE_BIT & (escope))
 
#define EM_ESCOPE_API(escope)   (((escope) & EM_ESCOPE_MASK) == EM_ESCOPE_API_MASK)
 
#define EM_ESCOPE_ADDON_API(escope)   (((escope) & EM_ESCOPE_MASK) == EM_ESCOPE_ADDON_API_MASK)
 
#define EM_ESCOPE_INTERNAL(escope)   (((escope) & EM_ESCOPE_MASK) == EM_ESCOPE_INTERNAL_MASK)
 
#define EM_ESCOPE_API_FIRST   (EM_ESCOPE_API_MASK | 0x0000)
 
#define EM_ESCOPE_ATOMIC_GROUP_CREATE   (EM_ESCOPE_API_MASK | 0x0001)
 
#define EM_ESCOPE_ATOMIC_GROUP_DELETE   (EM_ESCOPE_API_MASK | 0x0002)
 
#define EM_ESCOPE_ATOMIC_GROUP_FIND   (EM_ESCOPE_API_MASK | 0x0003)
 
#define EM_ESCOPE_ATOMIC_GROUP_FIRST   (EM_ESCOPE_API_MASK | 0x0004)
 
#define EM_ESCOPE_ATOMIC_GROUP_NAME   (EM_ESCOPE_API_MASK | 0x0005)
 
#define EM_ESCOPE_ATOMIC_GROUP_NEXT   (EM_ESCOPE_API_MASK | 0x0006)
 
#define EM_ESCOPE_ATOMIC_GROUP_QUEUE_FIRST   (EM_ESCOPE_API_MASK | 0x0007)
 
#define EM_ESCOPE_ATOMIC_GROUP_QUEUE_NEXT   (EM_ESCOPE_API_MASK | 0x0008)
 
#define EM_ESCOPE_QUEUE_CREATE_AG   (EM_ESCOPE_API_MASK | 0x0009)
 
#define EM_ESCOPE_QUEUE_CREATE_STATIC_AG   (EM_ESCOPE_API_MASK | 0x000A)
 
#define EM_ESCOPE_ATOMIC_GROUP_GET_FIRST   EM_ESCOPE_ATOMIC_GROUP_FIRST
 
#define EM_ESCOPE_ATOMIC_GROUP_GET_NAME   EM_ESCOPE_ATOMIC_GROUP_NAME
 
#define EM_ESCOPE_ATOMIC_GROUP_GET_NEXT   EM_ESCOPE_ATOMIC_GROUP_NEXT
 
#define EM_ESCOPE_ATOMIC_GROUP_QUEUE_GET_FIRST   EM_ESCOPE_ATOMIC_GROUP_QUEUE_FIRST
 
#define EM_ESCOPE_ATOMIC_GROUP_QUEUE_GET_NEXT   EM_ESCOPE_ATOMIC_GROUP_QUEUE_NEXT
 
#define EM_ESCOPE_CORE_COUNT   (EM_ESCOPE_API_MASK | 0x000B)
 
#define EM_ESCOPE_CORE_ID   (EM_ESCOPE_API_MASK | 0x000C)
 
#define EM_ESCOPE_DISPATCH   (EM_ESCOPE_API_MASK | 0x000D)
 
#define EM_ESCOPE_DISPATCH_DURATION   (EM_ESCOPE_API_MASK | 0x000E)
 
#define EM_ESCOPE_DISPATCH_EVENTS   (EM_ESCOPE_API_MASK | 0x000F)
 
#define EM_ESCOPE_DISPATCH_NS   (EM_ESCOPE_API_MASK | 0x0010)
 
#define EM_ESCOPE_DISPATCH_OPT_INIT   (EM_ESCOPE_API_MASK | 0x0011)
 
#define EM_ESCOPE_DISPATCH_REGISTER_ENTER_CB   (EM_ESCOPE_API_MASK | 0x0012)
 
#define EM_ESCOPE_DISPATCH_REGISTER_EXIT_CB   (EM_ESCOPE_API_MASK | 0x0013)
 
#define EM_ESCOPE_DISPATCH_ROUNDS   (EM_ESCOPE_API_MASK | 0x0014)
 
#define EM_ESCOPE_DISPATCH_UNREGISTER_ENTER_CB   (EM_ESCOPE_API_MASK | 0x0015)
 
#define EM_ESCOPE_DISPATCH_UNREGISTER_EXIT_CB   (EM_ESCOPE_API_MASK | 0x0016)
 
#define EM_ESCOPE_EO_ADD_QUEUE   (EM_ESCOPE_API_MASK | 0x0017)
 
#define EM_ESCOPE_EO_ADD_QUEUE_SYNC   (EM_ESCOPE_API_MASK | 0x0018)
 
#define EM_ESCOPE_EO_CONTEXT   (EM_ESCOPE_API_MASK | 0x0019)
 
#define EM_ESCOPE_EO_CREATE   (EM_ESCOPE_API_MASK | 0x001A)
 
#define EM_ESCOPE_EO_CREATE_MULTIRCV   (EM_ESCOPE_API_MASK | 0x001B)
 
#define EM_ESCOPE_EO_CREATE_PARAM   (EM_ESCOPE_API_MASK | 0x001C)
 
#define EM_ESCOPE_EO_CURRENT   (EM_ESCOPE_API_MASK | 0x001D)
 
#define EM_ESCOPE_EO_DELETE   (EM_ESCOPE_API_MASK | 0x001E)
 
#define EM_ESCOPE_EO_FIND   (EM_ESCOPE_API_MASK | 0x001F)
 
#define EM_ESCOPE_EO_FIRST   (EM_ESCOPE_API_MASK | 0x0020)
 
#define EM_ESCOPE_EO_MULTIRCV_PARAM_INIT   (EM_ESCOPE_API_MASK | 0x0021)
 
#define EM_ESCOPE_EO_NAME   (EM_ESCOPE_API_MASK | 0x0022)
 
#define EM_ESCOPE_EO_NEXT   (EM_ESCOPE_API_MASK | 0x0023)
 
#define EM_ESCOPE_EO_PARAM_INIT   (EM_ESCOPE_API_MASK | 0x0024)
 
#define EM_ESCOPE_EO_QUEUE_FIRST   (EM_ESCOPE_API_MASK | 0x0025)
 
#define EM_ESCOPE_EO_QUEUE_NEXT   (EM_ESCOPE_API_MASK | 0x0026)
 
#define EM_ESCOPE_EO_REGISTER_ERROR_HANDLER   (EM_ESCOPE_API_MASK | 0x0027)
 
#define EM_ESCOPE_EO_REMOVE_QUEUE   (EM_ESCOPE_API_MASK | 0x0028)
 
#define EM_ESCOPE_EO_REMOVE_QUEUE_ALL   (EM_ESCOPE_API_MASK | 0x0029)
 
#define EM_ESCOPE_EO_REMOVE_QUEUE_ALL_SYNC   (EM_ESCOPE_API_MASK | 0x002A)
 
#define EM_ESCOPE_EO_REMOVE_QUEUE_SYNC   (EM_ESCOPE_API_MASK | 0x002B)
 
#define EM_ESCOPE_EO_START   (EM_ESCOPE_API_MASK | 0x002C)
 
#define EM_ESCOPE_EO_START_SYNC   (EM_ESCOPE_API_MASK | 0x002D)
 
#define EM_ESCOPE_EO_STATE   (EM_ESCOPE_API_MASK | 0x002E)
 
#define EM_ESCOPE_EO_STOP   (EM_ESCOPE_API_MASK | 0x002F)
 
#define EM_ESCOPE_EO_STOP_SYNC   (EM_ESCOPE_API_MASK | 0x0030)
 
#define EM_ESCOPE_EO_UNREGISTER_ERROR_HANDLER   (EM_ESCOPE_API_MASK | 0x0031)
 
#define EM_ESCOPE_EO_GET_CONTEXT   EM_ESCOPE_EO_CONTEXT
 
#define EM_ESCOPE_EO_GET_FIRST   EM_ESCOPE_EO_FIRST
 
#define EM_ESCOPE_EO_GET_NAME   EM_ESCOPE_EO_NAME
 
#define EM_ESCOPE_EO_GET_NEXT   EM_ESCOPE_EO_NEXT
 
#define EM_ESCOPE_EO_GET_STATE   EM_ESCOPE_EO_STATE
 
#define EM_ESCOPE_EO_QUEUE_GET_FIRST   EM_ESCOPE_EO_QUEUE_FIRST
 
#define EM_ESCOPE_EO_QUEUE_GET_NEXT   EM_ESCOPE_EO_QUEUE_NEXT
 
#define EM_ESCOPE_ERROR   (EM_ESCOPE_API_MASK | 0x0032)
 
#define EM_ESCOPE_REGISTER_ERROR_HANDLER   (EM_ESCOPE_API_MASK | 0x0033)
 
#define EM_ESCOPE_UNREGISTER_ERROR_HANDLER   (EM_ESCOPE_API_MASK | 0x0034)
 
#define EM_ESCOPE_EVENT_GROUP_ABORT   (EM_ESCOPE_API_MASK | 0x0035)
 
#define EM_ESCOPE_EVENT_GROUP_APPLY   (EM_ESCOPE_API_MASK | 0x0036)
 
#define EM_ESCOPE_EVENT_GROUP_ASSIGN   (EM_ESCOPE_API_MASK | 0x0037)
 
#define EM_ESCOPE_EVENT_GROUP_CREATE   (EM_ESCOPE_API_MASK | 0x0038)
 
#define EM_ESCOPE_EVENT_GROUP_CURRENT   (EM_ESCOPE_API_MASK | 0x0039)
 
#define EM_ESCOPE_EVENT_GROUP_DELETE   (EM_ESCOPE_API_MASK | 0x003A)
 
#define EM_ESCOPE_EVENT_GROUP_FIRST   (EM_ESCOPE_API_MASK | 0x003B)
 
#define EM_ESCOPE_EVENT_GROUP_INCREMENT   (EM_ESCOPE_API_MASK | 0x003C)
 
#define EM_ESCOPE_EVENT_GROUP_IS_READY   (EM_ESCOPE_API_MASK | 0x003D)
 
#define EM_ESCOPE_EVENT_GROUP_NEXT   (EM_ESCOPE_API_MASK | 0x003E)
 
#define EM_ESCOPE_EVENT_GROUP_NOTIF   (EM_ESCOPE_API_MASK | 0x003F)
 
#define EM_ESCOPE_EVENT_GROUP_PROCESSING_END   (EM_ESCOPE_API_MASK | 0x0040)
 
#define EM_ESCOPE_SEND_GROUP   (EM_ESCOPE_API_MASK | 0x0041)
 
#define EM_ESCOPE_SEND_GROUP_MULTI   (EM_ESCOPE_API_MASK | 0x0042)
 
#define EM_ESCOPE_EVENT_GROUP_GET_FIRST   EM_ESCOPE_EVENT_GROUP_FIRST
 
#define EM_ESCOPE_EVENT_GROUP_GET_NEXT   EM_ESCOPE_EVENT_GROUP_NEXT
 
#define EM_ESCOPE_EVENT_GROUP_GET_NOTIF   EM_ESCOPE_EVENT_GROUP_NOTIF
 
#define EM_ESCOPE_ALLOC   (EM_ESCOPE_API_MASK | 0x0043)
 
#define EM_ESCOPE_ALLOC_MULTI   (EM_ESCOPE_API_MASK | 0x0044)
 
#define EM_ESCOPE_EVENT_CLONE   (EM_ESCOPE_API_MASK | 0x0045)
 
#define EM_ESCOPE_EVENT_CLONE_PART   (EM_ESCOPE_API_MASK | 0x0046)
 
#define EM_ESCOPE_EVENT_HAS_REF   (EM_ESCOPE_API_MASK | 0x0047)
 
#define EM_ESCOPE_EVENT_MARK_FREE   (EM_ESCOPE_API_MASK | 0x0048)
 
#define EM_ESCOPE_EVENT_MARK_FREE_MULTI   (EM_ESCOPE_API_MASK | 0x0049)
 
#define EM_ESCOPE_EVENT_MARK_SEND   (EM_ESCOPE_API_MASK | 0x004A)
 
#define EM_ESCOPE_EVENT_POINTER   (EM_ESCOPE_API_MASK | 0x004B)
 
#define EM_ESCOPE_EVENT_POINTER_AND_SIZE   (EM_ESCOPE_API_MASK | 0x004C)
 
#define EM_ESCOPE_EVENT_POOL   (EM_ESCOPE_API_MASK | 0x004D)
 
#define EM_ESCOPE_EVENT_POOL_SUBPOOL   (EM_ESCOPE_API_MASK | 0x004E)
 
#define EM_ESCOPE_EVENT_REF   (EM_ESCOPE_API_MASK | 0x004F)
 
#define EM_ESCOPE_EVENT_SAME_TYPE_MULTI   (EM_ESCOPE_API_MASK | 0x0050)
 
#define EM_ESCOPE_EVENT_SET_TYPE   (EM_ESCOPE_API_MASK | 0x0051)
 
#define EM_ESCOPE_EVENT_SIZE   (EM_ESCOPE_API_MASK | 0x0052)
 
#define EM_ESCOPE_EVENT_TYPE   (EM_ESCOPE_API_MASK | 0x0053)
 
#define EM_ESCOPE_EVENT_TYPE_MULTI   (EM_ESCOPE_API_MASK | 0x0054)
 
#define EM_ESCOPE_EVENT_UAREA   (EM_ESCOPE_API_MASK | 0x0055)
 
#define EM_ESCOPE_EVENT_UAREA_ID   (EM_ESCOPE_API_MASK | 0x0056)
 
#define EM_ESCOPE_EVENT_UAREA_ID_SET   (EM_ESCOPE_API_MASK | 0x0057)
 
#define EM_ESCOPE_EVENT_UAREA_INFO   (EM_ESCOPE_API_MASK | 0x0058)
 
#define EM_ESCOPE_EVENT_UNMARK_FREE   (EM_ESCOPE_API_MASK | 0x0059)
 
#define EM_ESCOPE_EVENT_UNMARK_FREE_MULTI   (EM_ESCOPE_API_MASK | 0x005A)
 
#define EM_ESCOPE_EVENT_UNMARK_SEND   (EM_ESCOPE_API_MASK | 0x005B)
 
#define EM_ESCOPE_EVENT_VECTOR_FREE   (EM_ESCOPE_API_MASK | 0x005C)
 
#define EM_ESCOPE_EVENT_VECTOR_INFO   (EM_ESCOPE_API_MASK | 0x005D)
 
#define EM_ESCOPE_EVENT_VECTOR_MAX_SIZE   (EM_ESCOPE_API_MASK | 0x005E)
 
#define EM_ESCOPE_EVENT_VECTOR_SIZE   (EM_ESCOPE_API_MASK | 0x005F)
 
#define EM_ESCOPE_EVENT_VECTOR_SIZE_SET   (EM_ESCOPE_API_MASK | 0x0060)
 
#define EM_ESCOPE_EVENT_VECTOR_TBL   (EM_ESCOPE_API_MASK | 0x0061)
 
#define EM_ESCOPE_EVENT_VECTOR_TYPE   (EM_ESCOPE_API_MASK | 0x0062)
 
#define EM_ESCOPE_EVENT_VECTOR_TYPE_SET   (EM_ESCOPE_API_MASK | 0x0063)
 
#define EM_ESCOPE_FREE   (EM_ESCOPE_API_MASK | 0x0064)
 
#define EM_ESCOPE_FREE_MULTI   (EM_ESCOPE_API_MASK | 0x0065)
 
#define EM_ESCOPE_SEND   (EM_ESCOPE_API_MASK | 0x0066)
 
#define EM_ESCOPE_SEND_MULTI   (EM_ESCOPE_API_MASK | 0x0067)
 
#define EM_ESCOPE_EVENT_GET_POOL   EM_ESCOPE_EVENT_POOL
 
#define EM_ESCOPE_EVENT_GET_POOL_SUBPOOL   EM_ESCOPE_EVENT_POOL_SUBPOOL
 
#define EM_ESCOPE_EVENT_GET_SIZE   EM_ESCOPE_EVENT_SIZE
 
#define EM_ESCOPE_EVENT_GET_TYPE   EM_ESCOPE_EVENT_TYPE
 
#define EM_ESCOPE_EVENT_GET_TYPE_MULTI   EM_ESCOPE_EVENT_TYPE_MULTI
 
#define EM_ESCOPE_EVENT_UAREA_GET   EM_ESCOPE_EVENT_UAREA
 
#define EM_ESCOPE_EVENT_UAREA_ID_GET   EM_ESCOPE_EVENT_UAREA_ID
 
#define EM_ESCOPE_PACKET_HEADROOM   (EM_ESCOPE_API_MASK | 0x0068)
 
#define EM_ESCOPE_PACKET_POINTER   (EM_ESCOPE_API_MASK | 0x0069)
 
#define EM_ESCOPE_PACKET_POINTER_AND_SIZE   (EM_ESCOPE_API_MASK | 0x006A)
 
#define EM_ESCOPE_PACKET_PULL_HEAD   (EM_ESCOPE_API_MASK | 0x006B)
 
#define EM_ESCOPE_PACKET_PULL_TAIL   (EM_ESCOPE_API_MASK | 0x006C)
 
#define EM_ESCOPE_PACKET_PUSH_HEAD   (EM_ESCOPE_API_MASK | 0x006D)
 
#define EM_ESCOPE_PACKET_PUSH_TAIL   (EM_ESCOPE_API_MASK | 0x006E)
 
#define EM_ESCOPE_PACKET_RESET   (EM_ESCOPE_API_MASK | 0x006F)
 
#define EM_ESCOPE_PACKET_RESIZE   (EM_ESCOPE_API_MASK | 0x0070)
 
#define EM_ESCOPE_PACKET_SIZE   (EM_ESCOPE_API_MASK | 0x0071)
 
#define EM_ESCOPE_PACKET_TAILROOM   (EM_ESCOPE_API_MASK | 0x0072)
 
#define EM_ESCOPE_PACKET_CONCAT   (EM_ESCOPE_API_MASK | 0x0073)
 
#define EM_ESCOPE_HOOKS_REGISTER_ALLOC   (EM_ESCOPE_API_MASK | 0x0074)
 
#define EM_ESCOPE_HOOKS_REGISTER_FREE   (EM_ESCOPE_API_MASK | 0x0075)
 
#define EM_ESCOPE_HOOKS_REGISTER_SEND   (EM_ESCOPE_API_MASK | 0x0076)
 
#define EM_ESCOPE_HOOKS_REGISTER_TO_ACTIVE   (EM_ESCOPE_API_MASK | 0x0077)
 
#define EM_ESCOPE_HOOKS_REGISTER_TO_IDLE   (EM_ESCOPE_API_MASK | 0x0078)
 
#define EM_ESCOPE_HOOKS_REGISTER_WHILE_IDLE   (EM_ESCOPE_API_MASK | 0x0079)
 
#define EM_ESCOPE_HOOKS_UNREGISTER_ALLOC   (EM_ESCOPE_API_MASK | 0x007A)
 
#define EM_ESCOPE_HOOKS_UNREGISTER_FREE   (EM_ESCOPE_API_MASK | 0x007B)
 
#define EM_ESCOPE_HOOKS_UNREGISTER_SEND   (EM_ESCOPE_API_MASK | 0x007C)
 
#define EM_ESCOPE_HOOKS_UNREGISTER_TO_ACTIVE   (EM_ESCOPE_API_MASK | 0x007D)
 
#define EM_ESCOPE_HOOKS_UNREGISTER_TO_IDLE   (EM_ESCOPE_API_MASK | 0x007E)
 
#define EM_ESCOPE_HOOKS_UNREGISTER_WHILE_IDLE   (EM_ESCOPE_API_MASK | 0x007F)
 
#define EM_ESCOPE_CONF_INIT   (EM_ESCOPE_API_MASK | 0x0080)
 
#define EM_ESCOPE_CONF_LOCAL_INIT   (EM_ESCOPE_API_MASK | 0x0081)
 
#define EM_ESCOPE_CONF_OPTS   (EM_ESCOPE_API_MASK | 0x0082)
 
#define EM_ESCOPE_CONF_LOCAL_OPTS   (EM_ESCOPE_API_MASK | 0x0083)
 
#define EM_ESCOPE_INIT   (EM_ESCOPE_API_MASK | 0x0084)
 
#define EM_ESCOPE_INIT_CORE   (EM_ESCOPE_API_MASK | 0x0085)
 
#define EM_ESCOPE_INIT_LOCAL   (EM_ESCOPE_API_MASK | 0x0086)
 
#define EM_ESCOPE_TERM   (EM_ESCOPE_API_MASK | 0x0087)
 
#define EM_ESCOPE_TERM_CORE   (EM_ESCOPE_API_MASK | 0x0088)
 
#define EM_ESCOPE_TERM_LOCAL   (EM_ESCOPE_API_MASK | 0x0089)
 
#define EM_ESCOPE_TERM_LOCAL_INIT   (EM_ESCOPE_API_MASK | 0x008A)
 
#define EM_ESCOPE_CFGFILE_OPTS   (EM_ESCOPE_API_MASK | 0x008B)
 
#define EM_ESCOPE_POOL_CFG_INIT   (EM_ESCOPE_API_MASK | 0x008C)
 
#define EM_ESCOPE_POOL_CREATE   (EM_ESCOPE_API_MASK | 0x008D)
 
#define EM_ESCOPE_POOL_DELETE   (EM_ESCOPE_API_MASK | 0x008E)
 
#define EM_ESCOPE_POOL_FIND   (EM_ESCOPE_API_MASK | 0x008F)
 
#define EM_ESCOPE_POOL_FIRST   (EM_ESCOPE_API_MASK | 0x0090)
 
#define EM_ESCOPE_POOL_INFO   (EM_ESCOPE_API_MASK | 0x0091)
 
#define EM_ESCOPE_POOL_NAME   (EM_ESCOPE_API_MASK | 0x0092)
 
#define EM_ESCOPE_POOL_NEXT   (EM_ESCOPE_API_MASK | 0x0093)
 
#define EM_ESCOPE_POOL_NUM_SUBPOOLS   (EM_ESCOPE_API_MASK | 0x0094)
 
#define EM_ESCOPE_POOL_STATS   (EM_ESCOPE_API_MASK | 0x0095)
 
#define EM_ESCOPE_POOL_STATS_RESET   (EM_ESCOPE_API_MASK | 0x0096)
 
#define EM_ESCOPE_POOL_STATS_SELECTED   (EM_ESCOPE_API_MASK | 0x0097)
 
#define EM_ESCOPE_POOL_SUBPOOL_STATS   (EM_ESCOPE_API_MASK | 0x0098)
 
#define EM_ESCOPE_POOL_SUBPOOL_STATS_RESET   (EM_ESCOPE_API_MASK | 0x0099)
 
#define EM_ESCOPE_POOL_SUBPOOL_STATS_SELECTED   (EM_ESCOPE_API_MASK | 0x009A)
 
#define EM_ESCOPE_POOL_STATS_OPT   (EM_ESCOPE_API_MASK | 0x009B)
 
#define EM_ESCOPE_POOL_GET_FIRST   EM_ESCOPE_POOL_FIRST
 
#define EM_ESCOPE_POOL_GET_NAME   EM_ESCOPE_POOL_NAME
 
#define EM_ESCOPE_POOL_GET_NEXT   EM_ESCOPE_POOL_NEXT
 
#define EM_ESCOPE_QUEUE_GROUP_CREATE   (EM_ESCOPE_API_MASK | 0x009C)
 
#define EM_ESCOPE_QUEUE_GROUP_CREATE_SYNC   (EM_ESCOPE_API_MASK | 0x009D)
 
#define EM_ESCOPE_QUEUE_GROUP_DELETE   (EM_ESCOPE_API_MASK | 0x009E)
 
#define EM_ESCOPE_QUEUE_GROUP_DELETE_SYNC   (EM_ESCOPE_API_MASK | 0x009F)
 
#define EM_ESCOPE_QUEUE_GROUP_FIND   (EM_ESCOPE_API_MASK | 0x00A0)
 
#define EM_ESCOPE_QUEUE_GROUP_FIRST   (EM_ESCOPE_API_MASK | 0x00A1)
 
#define EM_ESCOPE_QUEUE_GROUP_MASK   (EM_ESCOPE_API_MASK | 0x00A2)
 
#define EM_ESCOPE_QUEUE_GROUP_MODIFY   (EM_ESCOPE_API_MASK | 0x00A3)
 
#define EM_ESCOPE_QUEUE_GROUP_MODIFY_SYNC   (EM_ESCOPE_API_MASK | 0x00A4)
 
#define EM_ESCOPE_QUEUE_GROUP_NAME   (EM_ESCOPE_API_MASK | 0x00A5)
 
#define EM_ESCOPE_QUEUE_GROUP_NEXT   (EM_ESCOPE_API_MASK | 0x00A6)
 
#define EM_ESCOPE_QUEUE_GROUP_QUEUE_FIRST   (EM_ESCOPE_API_MASK | 0x00A7)
 
#define EM_ESCOPE_QUEUE_GROUP_QUEUE_NEXT   (EM_ESCOPE_API_MASK | 0x00A8)
 
#define EM_ESCOPE_QUEUE_GROUP_GET_FIRST   EM_ESCOPE_QUEUE_GROUP_FIRST
 
#define EM_ESCOPE_QUEUE_GROUP_GET_NAME   EM_ESCOPE_QUEUE_GROUP_NAME
 
#define EM_ESCOPE_QUEUE_GROUP_GET_NEXT   EM_ESCOPE_QUEUE_GROUP_NEXT
 
#define EM_ESCOPE_QUEUE_GROUP_QUEUE_GET_FIRST   EM_ESCOPE_QUEUE_GROUP_QUEUE_FIRST
 
#define EM_ESCOPE_QUEUE_GROUP_QUEUE_GET_NEXT   EM_ESCOPE_QUEUE_GROUP_QUEUE_NEXT
 
#define EM_ESCOPE_QUEUE_AGGR_CONF_INIT   (EM_ESCOPE_API_MASK | 0x00A9)
 
#define EM_ESCOPE_QUEUE_AGGR   (EM_ESCOPE_API_MASK | 0x00AA)
 
#define EM_ESCOPE_QUEUE_AGGR_INFO   (EM_ESCOPE_API_MASK | 0x00AB)
 
#define EM_ESCOPE_QUEUE_AGGR_LIST   (EM_ESCOPE_API_MASK | 0x00AC)
 
#define EM_ESCOPE_QUEUE_AGGR_NUM   (EM_ESCOPE_API_MASK | 0x00AD)
 
#define EM_ESCOPE_QUEUE_AGROUP   (EM_ESCOPE_API_MASK | 0x00AE)
 
#define EM_ESCOPE_QUEUE_CONTEXT   (EM_ESCOPE_API_MASK | 0x00AF)
 
#define EM_ESCOPE_QUEUE_CREATE   (EM_ESCOPE_API_MASK | 0x00B0)
 
#define EM_ESCOPE_QUEUE_CREATE_STATIC   (EM_ESCOPE_API_MASK | 0x00B1)
 
#define EM_ESCOPE_QUEUE_CREATE_PARAM   (EM_ESCOPE_API_MASK | 0x00B2)
 
#define EM_ESCOPE_QUEUE_CURRENT   (EM_ESCOPE_API_MASK | 0x00B3)
 
#define EM_ESCOPE_QUEUE_DELETE   (EM_ESCOPE_API_MASK | 0x00B4)
 
#define EM_ESCOPE_QUEUE_DEQUEUE   (EM_ESCOPE_API_MASK | 0x00B5)
 
#define EM_ESCOPE_QUEUE_DEQUEUE_MULTI   (EM_ESCOPE_API_MASK | 0x00B6)
 
#define EM_ESCOPE_QUEUE_FIND   (EM_ESCOPE_API_MASK | 0x00B7)
 
#define EM_ESCOPE_QUEUE_FIRST   (EM_ESCOPE_API_MASK | 0x00B8)
 
#define EM_ESCOPE_QUEUE_INDEX   (EM_ESCOPE_API_MASK | 0x00B9)
 
#define EM_ESCOPE_QUEUE_NAME   (EM_ESCOPE_API_MASK | 0x00BA)
 
#define EM_ESCOPE_QUEUE_NEXT   (EM_ESCOPE_API_MASK | 0x00BB)
 
#define EM_ESCOPE_QUEUE_NUM_PRIO   (EM_ESCOPE_API_MASK | 0x00BC)
 
#define EM_ESCOPE_QUEUE_PARAM_INIT   (EM_ESCOPE_API_MASK | 0x00BD)
 
#define EM_ESCOPE_QUEUE_PRIORITY   (EM_ESCOPE_API_MASK | 0x00BE)
 
#define EM_ESCOPE_QUEUE_QGROUP   (EM_ESCOPE_API_MASK | 0x00BF)
 
#define EM_ESCOPE_QUEUE_SET_CONTEXT   (EM_ESCOPE_API_MASK | 0x00C0)
 
#define EM_ESCOPE_QUEUE_TYPE   (EM_ESCOPE_API_MASK | 0x00C1)
 
#define EM_ESCOPE_QUEUE_STATIC_HANDLE   (EM_ESCOPE_API_MASK | 0x00C2)
 
#define EM_ESCOPE_ATOMIC_GROUP_GET   EM_ESCOPE_QUEUE_AGROUP
 
#define EM_ESCOPE_QUEUE_GET_CONTEXT   EM_ESCOPE_QUEUE_CONTEXT
 
#define EM_ESCOPE_QUEUE_GET_FIRST   EM_ESCOPE_QUEUE_FIRST
 
#define EM_ESCOPE_QUEUE_GET_GROUP   EM_ESCOPE_QUEUE_QGROUP
 
#define EM_ESCOPE_QUEUE_GET_INDEX   EM_ESCOPE_QUEUE_INDEX
 
#define EM_ESCOPE_QUEUE_GET_NAME   EM_ESCOPE_QUEUE_NAME
 
#define EM_ESCOPE_QUEUE_GET_NEXT   EM_ESCOPE_QUEUE_NEXT
 
#define EM_ESCOPE_QUEUE_GET_NUM_PRIO   EM_ESCOPE_QUEUE_NUM_PRIO
 
#define EM_ESCOPE_QUEUE_GET_PRIORITY   EM_ESCOPE_QUEUE_PRIORITY
 
#define EM_ESCOPE_QUEUE_GET_TYPE   EM_ESCOPE_QUEUE_TYPE
 
#define EM_ESCOPE_ATOMIC_PROCESSING_END   (EM_ESCOPE_API_MASK | 0x00C3)
 
#define EM_ESCOPE_ORDERED_PROCESSING_END   (EM_ESCOPE_API_MASK | 0x00C4)
 
#define EM_ESCOPE_PRESCHEDULE   (EM_ESCOPE_API_MASK | 0x00C5)
 
#define EM_ESCOPE_SCHED_CONTEXT_TYPE_CURRENT   (EM_ESCOPE_API_MASK | 0x00C6)
 
#define EM_ESCOPE_TIMER_ALL   (EM_ESCOPE_API_MASK | 0x00C7)
 
#define EM_ESCOPE_TIMER_ATTR   (EM_ESCOPE_API_MASK | 0x00C8)
 
#define EM_ESCOPE_TIMER_ATTR_INIT   (EM_ESCOPE_API_MASK | 0x00C9)
 
#define EM_ESCOPE_TIMER_CAPABILITY   (EM_ESCOPE_API_MASK | 0x00CA)
 
#define EM_ESCOPE_TIMER_CREATE   (EM_ESCOPE_API_MASK | 0x00CB)
 
#define EM_ESCOPE_TIMER_CUR_TICK   (EM_ESCOPE_API_MASK | 0x00CC)
 
#define EM_ESCOPE_TIMER_DELETE   (EM_ESCOPE_API_MASK | 0x00CD)
 
#define EM_ESCOPE_TIMER_FREQ   (EM_ESCOPE_API_MASK | 0x00CE)
 
#define EM_ESCOPE_TIMER_NS_TO_TICK   (EM_ESCOPE_API_MASK | 0x00CF)
 
#define EM_ESCOPE_TIMER_RES_CAPABILITY   (EM_ESCOPE_API_MASK | 0x00D0)
 
#define EM_ESCOPE_TIMER_RING_CREATE   (EM_ESCOPE_API_MASK | 0x00D1)
 
#define EM_ESCOPE_TIMER_RING_FREQ_CREATE   (EM_ESCOPE_API_MASK | 0x00D2)
 
#define EM_ESCOPE_TIMER_TICK_TO_NS   (EM_ESCOPE_API_MASK | 0x00D3)
 
#define EM_ESCOPE_TMO_ACK   (EM_ESCOPE_API_MASK | 0x00D4)
 
#define EM_ESCOPE_TMO_CANCEL   (EM_ESCOPE_API_MASK | 0x00D5)
 
#define EM_ESCOPE_TMO_CREATE   (EM_ESCOPE_API_MASK | 0x00D6)
 
#define EM_ESCOPE_TMO_CREATE_ARG   (EM_ESCOPE_API_MASK | 0x00D7)
 
#define EM_ESCOPE_TMO_DELETE   (EM_ESCOPE_API_MASK | 0x00D8)
 
#define EM_ESCOPE_TMO_SET_ABS   (EM_ESCOPE_API_MASK | 0x00D9)
 
#define EM_ESCOPE_TMO_SET_PERIODIC   (EM_ESCOPE_API_MASK | 0x00DA)
 
#define EM_ESCOPE_TMO_SET_PERIODIC_RING   (EM_ESCOPE_API_MASK | 0x00DB)
 
#define EM_ESCOPE_TMO_SET_REL   (EM_ESCOPE_API_MASK | 0x00DC)
 
#define EM_ESCOPE_TMO_STATE   (EM_ESCOPE_API_MASK | 0x00DD)
 
#define EM_ESCOPE_TMO_STATS   (EM_ESCOPE_API_MASK | 0x00DE)
 
#define EM_ESCOPE_TMO_TIMER   (EM_ESCOPE_API_MASK | 0x00DF)
 
#define EM_ESCOPE_TMO_TYPE   (EM_ESCOPE_API_MASK | 0x00E0)
 
#define EM_ESCOPE_TMO_USERPTR   (EM_ESCOPE_API_MASK | 0x00E1)
 
#define EM_ESCOPE_TMO_RING_ACK   (EM_ESCOPE_API_MASK | 0x00E2)
 
#define EM_ESCOPE_TMO_SET_PERIODIC_RING_FREQ   (EM_ESCOPE_API_MASK | 0x00E3)
 
#define EM_ESCOPE_TIMER_GET_ALL   EM_ESCOPE_TIMER_ALL
 
#define EM_ESCOPE_TIMER_GET_ATTR   EM_ESCOPE_TIMER_ATTR
 
#define EM_ESCOPE_TIMER_GET_FREQ   EM_ESCOPE_TIMER_FREQ
 
#define EM_ESCOPE_TMO_GET_STATE   EM_ESCOPE_TMO_STATE
 
#define EM_ESCOPE_TMO_GET_STATS   EM_ESCOPE_TMO_STATS
 
#define EM_ESCOPE_TMO_GET_TIMER   EM_ESCOPE_TMO_TIMER
 
#define EM_ESCOPE_TMO_GET_TYPE   EM_ESCOPE_TMO_TYPE
 
#define EM_ESCOPE_TMO_GET_USERPTR   EM_ESCOPE_TMO_USERPTR
 
#define EM_ESCOPE_API_LAST   (EM_ESCOPE_API_MASK | 0x00FF)
 
#define EM_ESCOPE_ADD_ON_API_BASE   (EM_ESCOPE_ADDON_API_MASK | 0x0000)
 
#define EM_ESCOPE_INTERNAL_FIRST   (EM_ESCOPE_INTERNAL_MASK | 0x0000)
 
#define EM_ESCOPE_EVENT_SEND_DEVICE   (EM_ESCOPE_INTERNAL_MASK | 0x0001)
 
#define EM_ESCOPE_EVENT_SEND_DEVICE_MULTI   (EM_ESCOPE_INTERNAL_MASK | 0x0002)
 
#define EM_ESCOPE_EVENT_GROUP_UPDATE   (EM_ESCOPE_INTERNAL_MASK | 0x0003)
 
#define EM_ESCOPE_EVENT_GROUP_UPDATE_PRECNT   (EM_ESCOPE_INTERNAL_MASK | 0x0004)
 
#define EM_ESCOPE_EVENT_GROUP_UPDATE_POSTCNT   (EM_ESCOPE_INTERNAL_MASK | 0x0005)
 
#define EM_ESCOPE_EO_LOCAL_FUNC_CALL_REQ   (EM_ESCOPE_INTERNAL_MASK | 0x0006)
 
#define EM_ESCOPE_EO_REMOVE_QUEUE_ALL_DONE_CB   (EM_ESCOPE_INTERNAL_MASK | 0x0007)
 
#define EM_ESCOPE_EO_REMOVE_QUEUE_ALL_SYNC_DONE_CB   (EM_ESCOPE_INTERNAL_MASK | 0x0008)
 
#define EM_ESCOPE_EO_REMOVE_QUEUE_DONE_CB   (EM_ESCOPE_INTERNAL_MASK | 0x0009)
 
#define EM_ESCOPE_EO_REMOVE_QUEUE_SYNC_DONE_CB   (EM_ESCOPE_INTERNAL_MASK | 0x000A)
 
#define EM_ESCOPE_EO_START_DONE_CB   (EM_ESCOPE_INTERNAL_MASK | 0x000B)
 
#define EM_ESCOPE_EO_START_SYNC_DONE_CB   (EM_ESCOPE_INTERNAL_MASK | 0x000C)
 
#define EM_ESCOPE_EO_STOP_DONE_CB   (EM_ESCOPE_INTERNAL_MASK | 0x000D)
 
#define EM_ESCOPE_EO_STOP_SYNC_DONE_CB   (EM_ESCOPE_INTERNAL_MASK | 0x000E)
 
#define EM_ESCOPE_QUEUE_DISABLE   (EM_ESCOPE_INTERNAL_MASK | 0x000F)
 
#define EM_ESCOPE_QUEUE_DISABLE_ALL   (EM_ESCOPE_INTERNAL_MASK | 0x0010)
 
#define EM_ESCOPE_QUEUE_ENABLE   (EM_ESCOPE_INTERNAL_MASK | 0x0011)
 
#define EM_ESCOPE_QUEUE_ENABLE_ALL   (EM_ESCOPE_INTERNAL_MASK | 0x0012)
 
#define EM_ESCOPE_QUEUE_STATE_CHANGE   (EM_ESCOPE_INTERNAL_MASK | 0x0013)
 
#define EM_ESCOPE_QUEUE_GROUP_ADD_CORE   (EM_ESCOPE_INTERNAL_MASK | 0x0014)
 
#define EM_ESCOPE_QUEUE_GROUP_REM_CORE   (EM_ESCOPE_INTERNAL_MASK | 0x0015)
 
#define EM_ESCOPE_DELETE_CTRL_QUEUES   (EM_ESCOPE_INTERNAL_MASK | 0x0016)
 
#define EM_ESCOPE_EVENT_INTERNAL_DONE   (EM_ESCOPE_INTERNAL_MASK | 0x0017)
 
#define EM_ESCOPE_EVENT_INTERNAL_LFUNC_CALL   (EM_ESCOPE_INTERNAL_MASK | 0x0018)
 
#define EM_ESCOPE_INTERNAL_DONE_W_NOTIF_REQ   (EM_ESCOPE_INTERNAL_MASK | 0x0019)
 
#define EM_ESCOPE_INTERNAL_EVENT_RECV_FUNC   (EM_ESCOPE_INTERNAL_MASK | 0x001A)
 
#define EM_ESCOPE_INTERNAL_NOTIF   (EM_ESCOPE_INTERNAL_MASK | 0x001B)
 
#define EM_ESCOPE_SEND_CTRL_QUEUE   (EM_ESCOPE_INTERNAL_MASK | 0x001C)
 
#define EM_ESCOPE_ODP_EXT   (EM_ESCOPE_INTERNAL_MASK | 0x001D)
 
#define EM_ESCOPE_INTERNAL_LAST   (EM_ESCOPE_INTERNAL_MASK | 0x001E)
 

Typedefs

typedef uint32_t em_status_t
 
typedef enum em_status_e em_status_e
 
typedef uint32_t em_escope_t
 
typedef em_status_t(* em_error_handler_t) (em_eo_t eo, em_status_t error, em_escope_t escope, va_list args)
 
typedef int(* em_log_func_t) (em_log_level_t level, const char *fmt,...) __attribute__((format(printf
 
typedef int(*) typedef int(* em_vlog_func_t) (em_log_level_t level, const char *fmt, va_list args)
 

Enumerations

enum  em_status_e {
  EM_ERR_BAD_ARG = 0x1 , EM_ERR_BAD_STATE = 0x2 , EM_ERR_BAD_ID = 0x3 , EM_ERR_BAD_TYPE = 0x4 ,
  EM_ERR_BAD_CONTEXT = 0x5 , EM_ERR_BAD_POINTER = 0x6 , EM_ERR_NOT_CREATED = 0x7 , EM_ERR_NOT_FREE = 0x8 ,
  EM_ERR_NOT_FOUND = 0x9 , EM_ERR_NOT_INITIALIZED = 0xa , EM_ERR_NOT_IMPLEMENTED = 0xb , EM_ERR_NOT_SUPPORTED = 0xc ,
  EM_ERR_ALLOC_FAILED = 0xd , EM_ERR_OPERATION_FAILED = 0xe , EM_ERR_LIB_FAILED = 0xf , EM_ERR_TOO_LARGE = 0x10 ,
  EM_ERR_TOO_SMALL = 0x11 , EM_ERR_EVENT_STATE = 0x12 , EM_ERR_TIMEOUT = 0x13 , EM_ERR_TOONEAR = 0x14 ,
  EM_ERR_TOOFAR = 0x15 , EM_ERR_CANCELED = 0x16 , EM_ERR_BUSY = 0x17 , EM_ERR
}
 
enum  em_log_level_t { EM_LOG_DBG , EM_LOG_PRINT , EM_LOG_ERR }
 

Functions

em_status_t em_register_error_handler (em_error_handler_t handler)
 
em_status_t em_unregister_error_handler (void)
 
void em_error (em_status_t error, em_escope_t escope,...)
 

Detailed Description

Error/Exception management

EM provides two basic mechanisms to manage operational exceptions

  1. Return value
    • Most API calls return a status which can be checked by the application
  2. Error handler
    • An optional error handler function can be registered. The given function is called by the EM implementation when an error occurs. This makes it possible to centralize the error management or even modify some API behavior as an error handler can modify the original API call return value as well. For instance, a global error handler could modify the em_send() behavior in such a way that the application never has to check the return value by catching all errors, fixing them (like deallocating event on failed send) and returning EM_OK.
    • There can be one global error handler and additionally one per each EO.

Macro Definition Documentation

◆ EM_ERROR

◆ EM_ERROR_FATAL_MASK

#define EM_ERROR_FATAL_MASK   0x80000000

Fatal error mask

Definition at line 68 of file event_machine_error.h.

◆ EM_ERROR_IS_FATAL

#define EM_ERROR_IS_FATAL (   error)    (!!(EM_ERROR_FATAL_MASK & (error)))

◆ EM_ERROR_SET_FATAL

◆ EM_ESCOPE

#define EM_ESCOPE (   escope)    (EM_ESCOPE_BIT & (escope))

Test if the error scope identifies an EM function - API, add-on API or other internal!

Examples
bench_pool.c, queue_groups.c, queues.c, queues_local.c, queues_output.c, queues_unscheduled.c, and send_multi.c.

Definition at line 336 of file event_machine_error.h.

◆ EM_ESCOPE_ADD_ON_API_BASE

#define EM_ESCOPE_ADD_ON_API_BASE   (EM_ESCOPE_ADDON_API_MASK | 0x0000)

Definition at line 674 of file event_machine_error.h.

◆ EM_ESCOPE_ADDON_API

#define EM_ESCOPE_ADDON_API (   escope)    (((escope) & EM_ESCOPE_MASK) == EM_ESCOPE_ADDON_API_MASK)

Test if the error scope identifies an EM API function

Definition at line 344 of file event_machine_error.h.

◆ EM_ESCOPE_ADDON_API_MASK

#define EM_ESCOPE_ADDON_API_MASK   (EM_ESCOPE_BIT | (EM_ESCOPE_ADDON_API_TYPE << 24))

EM Add-on API functions error mask

Definition at line 327 of file event_machine_error.h.

◆ EM_ESCOPE_ADDON_API_TYPE

#define EM_ESCOPE_ADDON_API_TYPE   (0xFEu)

EM Add-on API functions error scope

Definition at line 310 of file event_machine_error.h.

◆ EM_ESCOPE_ALLOC

#define EM_ESCOPE_ALLOC   (EM_ESCOPE_API_MASK | 0x0043)

Definition at line 452 of file event_machine_error.h.

◆ EM_ESCOPE_ALLOC_MULTI

#define EM_ESCOPE_ALLOC_MULTI   (EM_ESCOPE_API_MASK | 0x0044)

Definition at line 453 of file event_machine_error.h.

◆ EM_ESCOPE_API

#define EM_ESCOPE_API (   escope)    (((escope) & EM_ESCOPE_MASK) == EM_ESCOPE_API_MASK)

Test if the error scope identifies an EM API function

Examples
error.c.

Definition at line 340 of file event_machine_error.h.

◆ EM_ESCOPE_API_FIRST

#define EM_ESCOPE_API_FIRST   (EM_ESCOPE_API_MASK | 0x0000)

Definition at line 353 of file event_machine_error.h.

◆ EM_ESCOPE_API_LAST

#define EM_ESCOPE_API_LAST   (EM_ESCOPE_API_MASK | 0x00FF)

Definition at line 668 of file event_machine_error.h.

◆ EM_ESCOPE_API_MASK

#define EM_ESCOPE_API_MASK   (EM_ESCOPE_BIT | (EM_ESCOPE_API_TYPE << 24))

EM API functions error mask

Definition at line 323 of file event_machine_error.h.

◆ EM_ESCOPE_API_TYPE

#define EM_ESCOPE_API_TYPE   (0xFFu)

EM API functions error scope

Definition at line 306 of file event_machine_error.h.

◆ EM_ESCOPE_ATOMIC_GROUP_CREATE

#define EM_ESCOPE_ATOMIC_GROUP_CREATE   (EM_ESCOPE_API_MASK | 0x0001)

Definition at line 356 of file event_machine_error.h.

◆ EM_ESCOPE_ATOMIC_GROUP_DELETE

#define EM_ESCOPE_ATOMIC_GROUP_DELETE   (EM_ESCOPE_API_MASK | 0x0002)

Definition at line 357 of file event_machine_error.h.

◆ EM_ESCOPE_ATOMIC_GROUP_FIND

#define EM_ESCOPE_ATOMIC_GROUP_FIND   (EM_ESCOPE_API_MASK | 0x0003)

Definition at line 358 of file event_machine_error.h.

◆ EM_ESCOPE_ATOMIC_GROUP_FIRST

#define EM_ESCOPE_ATOMIC_GROUP_FIRST   (EM_ESCOPE_API_MASK | 0x0004)

Definition at line 359 of file event_machine_error.h.

◆ EM_ESCOPE_ATOMIC_GROUP_GET

#define EM_ESCOPE_ATOMIC_GROUP_GET   EM_ESCOPE_QUEUE_AGROUP

Definition at line 611 of file event_machine_error.h.

◆ EM_ESCOPE_ATOMIC_GROUP_GET_FIRST

#define EM_ESCOPE_ATOMIC_GROUP_GET_FIRST   EM_ESCOPE_ATOMIC_GROUP_FIRST

Definition at line 367 of file event_machine_error.h.

◆ EM_ESCOPE_ATOMIC_GROUP_GET_NAME

#define EM_ESCOPE_ATOMIC_GROUP_GET_NAME   EM_ESCOPE_ATOMIC_GROUP_NAME

Definition at line 368 of file event_machine_error.h.

◆ EM_ESCOPE_ATOMIC_GROUP_GET_NEXT

#define EM_ESCOPE_ATOMIC_GROUP_GET_NEXT   EM_ESCOPE_ATOMIC_GROUP_NEXT

Definition at line 369 of file event_machine_error.h.

◆ EM_ESCOPE_ATOMIC_GROUP_NAME

#define EM_ESCOPE_ATOMIC_GROUP_NAME   (EM_ESCOPE_API_MASK | 0x0005)

Definition at line 360 of file event_machine_error.h.

◆ EM_ESCOPE_ATOMIC_GROUP_NEXT

#define EM_ESCOPE_ATOMIC_GROUP_NEXT   (EM_ESCOPE_API_MASK | 0x0006)

Definition at line 361 of file event_machine_error.h.

◆ EM_ESCOPE_ATOMIC_GROUP_QUEUE_FIRST

#define EM_ESCOPE_ATOMIC_GROUP_QUEUE_FIRST   (EM_ESCOPE_API_MASK | 0x0007)

Definition at line 362 of file event_machine_error.h.

◆ EM_ESCOPE_ATOMIC_GROUP_QUEUE_GET_FIRST

#define EM_ESCOPE_ATOMIC_GROUP_QUEUE_GET_FIRST   EM_ESCOPE_ATOMIC_GROUP_QUEUE_FIRST

Definition at line 370 of file event_machine_error.h.

◆ EM_ESCOPE_ATOMIC_GROUP_QUEUE_GET_NEXT

#define EM_ESCOPE_ATOMIC_GROUP_QUEUE_GET_NEXT   EM_ESCOPE_ATOMIC_GROUP_QUEUE_NEXT

Definition at line 371 of file event_machine_error.h.

◆ EM_ESCOPE_ATOMIC_GROUP_QUEUE_NEXT

#define EM_ESCOPE_ATOMIC_GROUP_QUEUE_NEXT   (EM_ESCOPE_API_MASK | 0x0008)

Definition at line 363 of file event_machine_error.h.

◆ EM_ESCOPE_ATOMIC_PROCESSING_END

#define EM_ESCOPE_ATOMIC_PROCESSING_END   (EM_ESCOPE_API_MASK | 0x00C3)

Definition at line 623 of file event_machine_error.h.

◆ EM_ESCOPE_BIT

#define EM_ESCOPE_BIT   (0x80000000u)

All EM error scopes (API and other internal) should have bit 31 set

NOTE: High bit is RESERVED for EM escopes and should not be used by the application.

Definition at line 301 of file event_machine_error.h.

◆ EM_ESCOPE_CFGFILE_OPTS

#define EM_ESCOPE_CFGFILE_OPTS   (EM_ESCOPE_API_MASK | 0x008B)

Definition at line 538 of file event_machine_error.h.

◆ EM_ESCOPE_CONF_INIT

#define EM_ESCOPE_CONF_INIT   (EM_ESCOPE_API_MASK | 0x0080)

Definition at line 527 of file event_machine_error.h.

◆ EM_ESCOPE_CONF_LOCAL_INIT

#define EM_ESCOPE_CONF_LOCAL_INIT   (EM_ESCOPE_API_MASK | 0x0081)

Definition at line 528 of file event_machine_error.h.

◆ EM_ESCOPE_CONF_LOCAL_OPTS

#define EM_ESCOPE_CONF_LOCAL_OPTS   (EM_ESCOPE_API_MASK | 0x0083)

Definition at line 530 of file event_machine_error.h.

◆ EM_ESCOPE_CONF_OPTS

#define EM_ESCOPE_CONF_OPTS   (EM_ESCOPE_API_MASK | 0x0082)

Definition at line 529 of file event_machine_error.h.

◆ EM_ESCOPE_CORE_COUNT

#define EM_ESCOPE_CORE_COUNT   (EM_ESCOPE_API_MASK | 0x000B)

Definition at line 374 of file event_machine_error.h.

◆ EM_ESCOPE_CORE_ID

#define EM_ESCOPE_CORE_ID   (EM_ESCOPE_API_MASK | 0x000C)

Definition at line 375 of file event_machine_error.h.

◆ EM_ESCOPE_DELETE_CTRL_QUEUES

#define EM_ESCOPE_DELETE_CTRL_QUEUES   (EM_ESCOPE_INTERNAL_MASK | 0x0016)

Definition at line 713 of file event_machine_error.h.

◆ EM_ESCOPE_DISPATCH

#define EM_ESCOPE_DISPATCH   (EM_ESCOPE_API_MASK | 0x000D)

Definition at line 378 of file event_machine_error.h.

◆ EM_ESCOPE_DISPATCH_DURATION

#define EM_ESCOPE_DISPATCH_DURATION   (EM_ESCOPE_API_MASK | 0x000E)

Definition at line 379 of file event_machine_error.h.

◆ EM_ESCOPE_DISPATCH_EVENTS

#define EM_ESCOPE_DISPATCH_EVENTS   (EM_ESCOPE_API_MASK | 0x000F)

Definition at line 380 of file event_machine_error.h.

◆ EM_ESCOPE_DISPATCH_NS

#define EM_ESCOPE_DISPATCH_NS   (EM_ESCOPE_API_MASK | 0x0010)

Definition at line 381 of file event_machine_error.h.

◆ EM_ESCOPE_DISPATCH_OPT_INIT

#define EM_ESCOPE_DISPATCH_OPT_INIT   (EM_ESCOPE_API_MASK | 0x0011)

Definition at line 382 of file event_machine_error.h.

◆ EM_ESCOPE_DISPATCH_REGISTER_ENTER_CB

#define EM_ESCOPE_DISPATCH_REGISTER_ENTER_CB   (EM_ESCOPE_API_MASK | 0x0012)

Definition at line 383 of file event_machine_error.h.

◆ EM_ESCOPE_DISPATCH_REGISTER_EXIT_CB

#define EM_ESCOPE_DISPATCH_REGISTER_EXIT_CB   (EM_ESCOPE_API_MASK | 0x0013)

Definition at line 384 of file event_machine_error.h.

◆ EM_ESCOPE_DISPATCH_ROUNDS

#define EM_ESCOPE_DISPATCH_ROUNDS   (EM_ESCOPE_API_MASK | 0x0014)

Definition at line 385 of file event_machine_error.h.

◆ EM_ESCOPE_DISPATCH_UNREGISTER_ENTER_CB

#define EM_ESCOPE_DISPATCH_UNREGISTER_ENTER_CB   (EM_ESCOPE_API_MASK | 0x0015)

Definition at line 386 of file event_machine_error.h.

◆ EM_ESCOPE_DISPATCH_UNREGISTER_EXIT_CB

#define EM_ESCOPE_DISPATCH_UNREGISTER_EXIT_CB   (EM_ESCOPE_API_MASK | 0x0016)

Definition at line 387 of file event_machine_error.h.

◆ EM_ESCOPE_EO_ADD_QUEUE

#define EM_ESCOPE_EO_ADD_QUEUE   (EM_ESCOPE_API_MASK | 0x0017)

Definition at line 390 of file event_machine_error.h.

◆ EM_ESCOPE_EO_ADD_QUEUE_SYNC

#define EM_ESCOPE_EO_ADD_QUEUE_SYNC   (EM_ESCOPE_API_MASK | 0x0018)

Definition at line 391 of file event_machine_error.h.

◆ EM_ESCOPE_EO_CONTEXT

#define EM_ESCOPE_EO_CONTEXT   (EM_ESCOPE_API_MASK | 0x0019)

Definition at line 392 of file event_machine_error.h.

◆ EM_ESCOPE_EO_CREATE

#define EM_ESCOPE_EO_CREATE   (EM_ESCOPE_API_MASK | 0x001A)

Definition at line 393 of file event_machine_error.h.

◆ EM_ESCOPE_EO_CREATE_MULTIRCV

#define EM_ESCOPE_EO_CREATE_MULTIRCV   (EM_ESCOPE_API_MASK | 0x001B)

Definition at line 394 of file event_machine_error.h.

◆ EM_ESCOPE_EO_CREATE_PARAM

#define EM_ESCOPE_EO_CREATE_PARAM   (EM_ESCOPE_API_MASK | 0x001C)

Definition at line 395 of file event_machine_error.h.

◆ EM_ESCOPE_EO_CURRENT

#define EM_ESCOPE_EO_CURRENT   (EM_ESCOPE_API_MASK | 0x001D)

Definition at line 396 of file event_machine_error.h.

◆ EM_ESCOPE_EO_DELETE

#define EM_ESCOPE_EO_DELETE   (EM_ESCOPE_API_MASK | 0x001E)

Definition at line 397 of file event_machine_error.h.

◆ EM_ESCOPE_EO_FIND

#define EM_ESCOPE_EO_FIND   (EM_ESCOPE_API_MASK | 0x001F)

Definition at line 398 of file event_machine_error.h.

◆ EM_ESCOPE_EO_FIRST

#define EM_ESCOPE_EO_FIRST   (EM_ESCOPE_API_MASK | 0x0020)

Definition at line 399 of file event_machine_error.h.

◆ EM_ESCOPE_EO_GET_CONTEXT

#define EM_ESCOPE_EO_GET_CONTEXT   EM_ESCOPE_EO_CONTEXT

Definition at line 418 of file event_machine_error.h.

◆ EM_ESCOPE_EO_GET_FIRST

#define EM_ESCOPE_EO_GET_FIRST   EM_ESCOPE_EO_FIRST

Definition at line 419 of file event_machine_error.h.

◆ EM_ESCOPE_EO_GET_NAME

#define EM_ESCOPE_EO_GET_NAME   EM_ESCOPE_EO_NAME

Definition at line 420 of file event_machine_error.h.

◆ EM_ESCOPE_EO_GET_NEXT

#define EM_ESCOPE_EO_GET_NEXT   EM_ESCOPE_EO_NEXT

Definition at line 421 of file event_machine_error.h.

◆ EM_ESCOPE_EO_GET_STATE

#define EM_ESCOPE_EO_GET_STATE   EM_ESCOPE_EO_STATE

Definition at line 422 of file event_machine_error.h.

◆ EM_ESCOPE_EO_LOCAL_FUNC_CALL_REQ

#define EM_ESCOPE_EO_LOCAL_FUNC_CALL_REQ   (EM_ESCOPE_INTERNAL_MASK | 0x0006)

Definition at line 691 of file event_machine_error.h.

◆ EM_ESCOPE_EO_MULTIRCV_PARAM_INIT

#define EM_ESCOPE_EO_MULTIRCV_PARAM_INIT   (EM_ESCOPE_API_MASK | 0x0021)

Definition at line 400 of file event_machine_error.h.

◆ EM_ESCOPE_EO_NAME

#define EM_ESCOPE_EO_NAME   (EM_ESCOPE_API_MASK | 0x0022)

Definition at line 401 of file event_machine_error.h.

◆ EM_ESCOPE_EO_NEXT

#define EM_ESCOPE_EO_NEXT   (EM_ESCOPE_API_MASK | 0x0023)

Definition at line 402 of file event_machine_error.h.

◆ EM_ESCOPE_EO_PARAM_INIT

#define EM_ESCOPE_EO_PARAM_INIT   (EM_ESCOPE_API_MASK | 0x0024)

Definition at line 403 of file event_machine_error.h.

◆ EM_ESCOPE_EO_QUEUE_FIRST

#define EM_ESCOPE_EO_QUEUE_FIRST   (EM_ESCOPE_API_MASK | 0x0025)

Definition at line 404 of file event_machine_error.h.

◆ EM_ESCOPE_EO_QUEUE_GET_FIRST

#define EM_ESCOPE_EO_QUEUE_GET_FIRST   EM_ESCOPE_EO_QUEUE_FIRST

Definition at line 423 of file event_machine_error.h.

◆ EM_ESCOPE_EO_QUEUE_GET_NEXT

#define EM_ESCOPE_EO_QUEUE_GET_NEXT   EM_ESCOPE_EO_QUEUE_NEXT

Definition at line 424 of file event_machine_error.h.

◆ EM_ESCOPE_EO_QUEUE_NEXT

#define EM_ESCOPE_EO_QUEUE_NEXT   (EM_ESCOPE_API_MASK | 0x0026)

Definition at line 405 of file event_machine_error.h.

◆ EM_ESCOPE_EO_REGISTER_ERROR_HANDLER

#define EM_ESCOPE_EO_REGISTER_ERROR_HANDLER   (EM_ESCOPE_API_MASK | 0x0027)

Definition at line 406 of file event_machine_error.h.

◆ EM_ESCOPE_EO_REMOVE_QUEUE

#define EM_ESCOPE_EO_REMOVE_QUEUE   (EM_ESCOPE_API_MASK | 0x0028)

Definition at line 407 of file event_machine_error.h.

◆ EM_ESCOPE_EO_REMOVE_QUEUE_ALL

#define EM_ESCOPE_EO_REMOVE_QUEUE_ALL   (EM_ESCOPE_API_MASK | 0x0029)

Definition at line 408 of file event_machine_error.h.

◆ EM_ESCOPE_EO_REMOVE_QUEUE_ALL_DONE_CB

#define EM_ESCOPE_EO_REMOVE_QUEUE_ALL_DONE_CB   (EM_ESCOPE_INTERNAL_MASK | 0x0007)

Definition at line 692 of file event_machine_error.h.

◆ EM_ESCOPE_EO_REMOVE_QUEUE_ALL_SYNC

#define EM_ESCOPE_EO_REMOVE_QUEUE_ALL_SYNC   (EM_ESCOPE_API_MASK | 0x002A)

Definition at line 409 of file event_machine_error.h.

◆ EM_ESCOPE_EO_REMOVE_QUEUE_ALL_SYNC_DONE_CB

#define EM_ESCOPE_EO_REMOVE_QUEUE_ALL_SYNC_DONE_CB   (EM_ESCOPE_INTERNAL_MASK | 0x0008)

Definition at line 693 of file event_machine_error.h.

◆ EM_ESCOPE_EO_REMOVE_QUEUE_DONE_CB

#define EM_ESCOPE_EO_REMOVE_QUEUE_DONE_CB   (EM_ESCOPE_INTERNAL_MASK | 0x0009)

Definition at line 694 of file event_machine_error.h.

◆ EM_ESCOPE_EO_REMOVE_QUEUE_SYNC

#define EM_ESCOPE_EO_REMOVE_QUEUE_SYNC   (EM_ESCOPE_API_MASK | 0x002B)

Definition at line 410 of file event_machine_error.h.

◆ EM_ESCOPE_EO_REMOVE_QUEUE_SYNC_DONE_CB

#define EM_ESCOPE_EO_REMOVE_QUEUE_SYNC_DONE_CB   (EM_ESCOPE_INTERNAL_MASK | 0x000A)

Definition at line 695 of file event_machine_error.h.

◆ EM_ESCOPE_EO_START

#define EM_ESCOPE_EO_START   (EM_ESCOPE_API_MASK | 0x002C)

Definition at line 411 of file event_machine_error.h.

◆ EM_ESCOPE_EO_START_DONE_CB

#define EM_ESCOPE_EO_START_DONE_CB   (EM_ESCOPE_INTERNAL_MASK | 0x000B)

Definition at line 696 of file event_machine_error.h.

◆ EM_ESCOPE_EO_START_SYNC

#define EM_ESCOPE_EO_START_SYNC   (EM_ESCOPE_API_MASK | 0x002D)

Definition at line 412 of file event_machine_error.h.

◆ EM_ESCOPE_EO_START_SYNC_DONE_CB

#define EM_ESCOPE_EO_START_SYNC_DONE_CB   (EM_ESCOPE_INTERNAL_MASK | 0x000C)

Definition at line 697 of file event_machine_error.h.

◆ EM_ESCOPE_EO_STATE

#define EM_ESCOPE_EO_STATE   (EM_ESCOPE_API_MASK | 0x002E)

Definition at line 413 of file event_machine_error.h.

◆ EM_ESCOPE_EO_STOP

#define EM_ESCOPE_EO_STOP   (EM_ESCOPE_API_MASK | 0x002F)

Definition at line 414 of file event_machine_error.h.

◆ EM_ESCOPE_EO_STOP_DONE_CB

#define EM_ESCOPE_EO_STOP_DONE_CB   (EM_ESCOPE_INTERNAL_MASK | 0x000D)

Definition at line 698 of file event_machine_error.h.

◆ EM_ESCOPE_EO_STOP_SYNC

#define EM_ESCOPE_EO_STOP_SYNC   (EM_ESCOPE_API_MASK | 0x0030)

Definition at line 415 of file event_machine_error.h.

◆ EM_ESCOPE_EO_STOP_SYNC_DONE_CB

#define EM_ESCOPE_EO_STOP_SYNC_DONE_CB   (EM_ESCOPE_INTERNAL_MASK | 0x000E)

Definition at line 699 of file event_machine_error.h.

◆ EM_ESCOPE_EO_UNREGISTER_ERROR_HANDLER

#define EM_ESCOPE_EO_UNREGISTER_ERROR_HANDLER   (EM_ESCOPE_API_MASK | 0x0031)

Definition at line 416 of file event_machine_error.h.

◆ EM_ESCOPE_ERROR

#define EM_ESCOPE_ERROR   (EM_ESCOPE_API_MASK | 0x0032)

Definition at line 427 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_CLONE

#define EM_ESCOPE_EVENT_CLONE   (EM_ESCOPE_API_MASK | 0x0045)

Definition at line 454 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_CLONE_PART

#define EM_ESCOPE_EVENT_CLONE_PART   (EM_ESCOPE_API_MASK | 0x0046)

Definition at line 455 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_GET_POOL

#define EM_ESCOPE_EVENT_GET_POOL   EM_ESCOPE_EVENT_POOL

Definition at line 490 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_GET_POOL_SUBPOOL

#define EM_ESCOPE_EVENT_GET_POOL_SUBPOOL   EM_ESCOPE_EVENT_POOL_SUBPOOL

Definition at line 491 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_GET_SIZE

#define EM_ESCOPE_EVENT_GET_SIZE   EM_ESCOPE_EVENT_SIZE

Definition at line 492 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_GET_TYPE

#define EM_ESCOPE_EVENT_GET_TYPE   EM_ESCOPE_EVENT_TYPE

Definition at line 493 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_GET_TYPE_MULTI

#define EM_ESCOPE_EVENT_GET_TYPE_MULTI   EM_ESCOPE_EVENT_TYPE_MULTI

Definition at line 494 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_GROUP_ABORT

#define EM_ESCOPE_EVENT_GROUP_ABORT   (EM_ESCOPE_API_MASK | 0x0035)

Definition at line 432 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_GROUP_APPLY

#define EM_ESCOPE_EVENT_GROUP_APPLY   (EM_ESCOPE_API_MASK | 0x0036)

Definition at line 433 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_GROUP_ASSIGN

#define EM_ESCOPE_EVENT_GROUP_ASSIGN   (EM_ESCOPE_API_MASK | 0x0037)

Definition at line 434 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_GROUP_CREATE

#define EM_ESCOPE_EVENT_GROUP_CREATE   (EM_ESCOPE_API_MASK | 0x0038)

Definition at line 435 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_GROUP_CURRENT

#define EM_ESCOPE_EVENT_GROUP_CURRENT   (EM_ESCOPE_API_MASK | 0x0039)

Definition at line 436 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_GROUP_DELETE

#define EM_ESCOPE_EVENT_GROUP_DELETE   (EM_ESCOPE_API_MASK | 0x003A)

Definition at line 437 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_GROUP_FIRST

#define EM_ESCOPE_EVENT_GROUP_FIRST   (EM_ESCOPE_API_MASK | 0x003B)

Definition at line 438 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_GROUP_GET_FIRST

#define EM_ESCOPE_EVENT_GROUP_GET_FIRST   EM_ESCOPE_EVENT_GROUP_FIRST

Definition at line 447 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_GROUP_GET_NEXT

#define EM_ESCOPE_EVENT_GROUP_GET_NEXT   EM_ESCOPE_EVENT_GROUP_NEXT

Definition at line 448 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_GROUP_GET_NOTIF

#define EM_ESCOPE_EVENT_GROUP_GET_NOTIF   EM_ESCOPE_EVENT_GROUP_NOTIF

Definition at line 449 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_GROUP_INCREMENT

#define EM_ESCOPE_EVENT_GROUP_INCREMENT   (EM_ESCOPE_API_MASK | 0x003C)

Definition at line 439 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_GROUP_IS_READY

#define EM_ESCOPE_EVENT_GROUP_IS_READY   (EM_ESCOPE_API_MASK | 0x003D)

Definition at line 440 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_GROUP_NEXT

#define EM_ESCOPE_EVENT_GROUP_NEXT   (EM_ESCOPE_API_MASK | 0x003E)

Definition at line 441 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_GROUP_NOTIF

#define EM_ESCOPE_EVENT_GROUP_NOTIF   (EM_ESCOPE_API_MASK | 0x003F)

Definition at line 442 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_GROUP_PROCESSING_END

#define EM_ESCOPE_EVENT_GROUP_PROCESSING_END   (EM_ESCOPE_API_MASK | 0x0040)

Definition at line 443 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_GROUP_UPDATE

#define EM_ESCOPE_EVENT_GROUP_UPDATE   (EM_ESCOPE_INTERNAL_MASK | 0x0003)

Definition at line 686 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_GROUP_UPDATE_POSTCNT

#define EM_ESCOPE_EVENT_GROUP_UPDATE_POSTCNT   (EM_ESCOPE_INTERNAL_MASK | 0x0005)

Definition at line 688 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_GROUP_UPDATE_PRECNT

#define EM_ESCOPE_EVENT_GROUP_UPDATE_PRECNT   (EM_ESCOPE_INTERNAL_MASK | 0x0004)

Definition at line 687 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_HAS_REF

#define EM_ESCOPE_EVENT_HAS_REF   (EM_ESCOPE_API_MASK | 0x0047)

Definition at line 456 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_INTERNAL_DONE

#define EM_ESCOPE_EVENT_INTERNAL_DONE   (EM_ESCOPE_INTERNAL_MASK | 0x0017)

Definition at line 714 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_INTERNAL_LFUNC_CALL

#define EM_ESCOPE_EVENT_INTERNAL_LFUNC_CALL   (EM_ESCOPE_INTERNAL_MASK | 0x0018)

Definition at line 715 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_MARK_FREE

#define EM_ESCOPE_EVENT_MARK_FREE   (EM_ESCOPE_API_MASK | 0x0048)

Definition at line 457 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_MARK_FREE_MULTI

#define EM_ESCOPE_EVENT_MARK_FREE_MULTI   (EM_ESCOPE_API_MASK | 0x0049)

Definition at line 458 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_MARK_SEND

#define EM_ESCOPE_EVENT_MARK_SEND   (EM_ESCOPE_API_MASK | 0x004A)

Definition at line 459 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_POINTER

#define EM_ESCOPE_EVENT_POINTER   (EM_ESCOPE_API_MASK | 0x004B)

Definition at line 460 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_POINTER_AND_SIZE

#define EM_ESCOPE_EVENT_POINTER_AND_SIZE   (EM_ESCOPE_API_MASK | 0x004C)

Definition at line 461 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_POOL

#define EM_ESCOPE_EVENT_POOL   (EM_ESCOPE_API_MASK | 0x004D)

Definition at line 462 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_POOL_SUBPOOL

#define EM_ESCOPE_EVENT_POOL_SUBPOOL   (EM_ESCOPE_API_MASK | 0x004E)

Definition at line 463 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_REF

#define EM_ESCOPE_EVENT_REF   (EM_ESCOPE_API_MASK | 0x004F)

Definition at line 464 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_SAME_TYPE_MULTI

#define EM_ESCOPE_EVENT_SAME_TYPE_MULTI   (EM_ESCOPE_API_MASK | 0x0050)

Definition at line 465 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_SEND_DEVICE

#define EM_ESCOPE_EVENT_SEND_DEVICE   (EM_ESCOPE_INTERNAL_MASK | 0x0001)

Definition at line 682 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_SEND_DEVICE_MULTI

#define EM_ESCOPE_EVENT_SEND_DEVICE_MULTI   (EM_ESCOPE_INTERNAL_MASK | 0x0002)

Definition at line 683 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_SET_TYPE

#define EM_ESCOPE_EVENT_SET_TYPE   (EM_ESCOPE_API_MASK | 0x0051)

Definition at line 466 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_SIZE

#define EM_ESCOPE_EVENT_SIZE   (EM_ESCOPE_API_MASK | 0x0052)

Definition at line 467 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_TYPE

#define EM_ESCOPE_EVENT_TYPE   (EM_ESCOPE_API_MASK | 0x0053)

Definition at line 468 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_TYPE_MULTI

#define EM_ESCOPE_EVENT_TYPE_MULTI   (EM_ESCOPE_API_MASK | 0x0054)

Definition at line 469 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_UAREA

#define EM_ESCOPE_EVENT_UAREA   (EM_ESCOPE_API_MASK | 0x0055)

Definition at line 470 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_UAREA_GET

#define EM_ESCOPE_EVENT_UAREA_GET   EM_ESCOPE_EVENT_UAREA

Definition at line 495 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_UAREA_ID

#define EM_ESCOPE_EVENT_UAREA_ID   (EM_ESCOPE_API_MASK | 0x0056)

Definition at line 471 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_UAREA_ID_GET

#define EM_ESCOPE_EVENT_UAREA_ID_GET   EM_ESCOPE_EVENT_UAREA_ID

Definition at line 496 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_UAREA_ID_SET

#define EM_ESCOPE_EVENT_UAREA_ID_SET   (EM_ESCOPE_API_MASK | 0x0057)

Definition at line 472 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_UAREA_INFO

#define EM_ESCOPE_EVENT_UAREA_INFO   (EM_ESCOPE_API_MASK | 0x0058)

Definition at line 473 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_UNMARK_FREE

#define EM_ESCOPE_EVENT_UNMARK_FREE   (EM_ESCOPE_API_MASK | 0x0059)

Definition at line 474 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_UNMARK_FREE_MULTI

#define EM_ESCOPE_EVENT_UNMARK_FREE_MULTI   (EM_ESCOPE_API_MASK | 0x005A)

Definition at line 475 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_UNMARK_SEND

#define EM_ESCOPE_EVENT_UNMARK_SEND   (EM_ESCOPE_API_MASK | 0x005B)

Definition at line 476 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_VECTOR_FREE

#define EM_ESCOPE_EVENT_VECTOR_FREE   (EM_ESCOPE_API_MASK | 0x005C)

Definition at line 477 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_VECTOR_INFO

#define EM_ESCOPE_EVENT_VECTOR_INFO   (EM_ESCOPE_API_MASK | 0x005D)

Definition at line 478 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_VECTOR_MAX_SIZE

#define EM_ESCOPE_EVENT_VECTOR_MAX_SIZE   (EM_ESCOPE_API_MASK | 0x005E)

Definition at line 479 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_VECTOR_SIZE

#define EM_ESCOPE_EVENT_VECTOR_SIZE   (EM_ESCOPE_API_MASK | 0x005F)

Definition at line 480 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_VECTOR_SIZE_SET

#define EM_ESCOPE_EVENT_VECTOR_SIZE_SET   (EM_ESCOPE_API_MASK | 0x0060)

Definition at line 481 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_VECTOR_TBL

#define EM_ESCOPE_EVENT_VECTOR_TBL   (EM_ESCOPE_API_MASK | 0x0061)

Definition at line 482 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_VECTOR_TYPE

#define EM_ESCOPE_EVENT_VECTOR_TYPE   (EM_ESCOPE_API_MASK | 0x0062)

Definition at line 483 of file event_machine_error.h.

◆ EM_ESCOPE_EVENT_VECTOR_TYPE_SET

#define EM_ESCOPE_EVENT_VECTOR_TYPE_SET   (EM_ESCOPE_API_MASK | 0x0063)

Definition at line 484 of file event_machine_error.h.

◆ EM_ESCOPE_FREE

#define EM_ESCOPE_FREE   (EM_ESCOPE_API_MASK | 0x0064)

Definition at line 485 of file event_machine_error.h.

◆ EM_ESCOPE_FREE_MULTI

#define EM_ESCOPE_FREE_MULTI   (EM_ESCOPE_API_MASK | 0x0065)

Definition at line 486 of file event_machine_error.h.

◆ EM_ESCOPE_HOOKS_REGISTER_ALLOC

#define EM_ESCOPE_HOOKS_REGISTER_ALLOC   (EM_ESCOPE_API_MASK | 0x0074)

Definition at line 513 of file event_machine_error.h.

◆ EM_ESCOPE_HOOKS_REGISTER_FREE

#define EM_ESCOPE_HOOKS_REGISTER_FREE   (EM_ESCOPE_API_MASK | 0x0075)

Definition at line 514 of file event_machine_error.h.

◆ EM_ESCOPE_HOOKS_REGISTER_SEND

#define EM_ESCOPE_HOOKS_REGISTER_SEND   (EM_ESCOPE_API_MASK | 0x0076)

Definition at line 515 of file event_machine_error.h.

◆ EM_ESCOPE_HOOKS_REGISTER_TO_ACTIVE

#define EM_ESCOPE_HOOKS_REGISTER_TO_ACTIVE   (EM_ESCOPE_API_MASK | 0x0077)

Definition at line 516 of file event_machine_error.h.

◆ EM_ESCOPE_HOOKS_REGISTER_TO_IDLE

#define EM_ESCOPE_HOOKS_REGISTER_TO_IDLE   (EM_ESCOPE_API_MASK | 0x0078)

Definition at line 517 of file event_machine_error.h.

◆ EM_ESCOPE_HOOKS_REGISTER_WHILE_IDLE

#define EM_ESCOPE_HOOKS_REGISTER_WHILE_IDLE   (EM_ESCOPE_API_MASK | 0x0079)

Definition at line 518 of file event_machine_error.h.

◆ EM_ESCOPE_HOOKS_UNREGISTER_ALLOC

#define EM_ESCOPE_HOOKS_UNREGISTER_ALLOC   (EM_ESCOPE_API_MASK | 0x007A)

Definition at line 519 of file event_machine_error.h.

◆ EM_ESCOPE_HOOKS_UNREGISTER_FREE

#define EM_ESCOPE_HOOKS_UNREGISTER_FREE   (EM_ESCOPE_API_MASK | 0x007B)

Definition at line 520 of file event_machine_error.h.

◆ EM_ESCOPE_HOOKS_UNREGISTER_SEND

#define EM_ESCOPE_HOOKS_UNREGISTER_SEND   (EM_ESCOPE_API_MASK | 0x007C)

Definition at line 521 of file event_machine_error.h.

◆ EM_ESCOPE_HOOKS_UNREGISTER_TO_ACTIVE

#define EM_ESCOPE_HOOKS_UNREGISTER_TO_ACTIVE   (EM_ESCOPE_API_MASK | 0x007D)

Definition at line 522 of file event_machine_error.h.

◆ EM_ESCOPE_HOOKS_UNREGISTER_TO_IDLE

#define EM_ESCOPE_HOOKS_UNREGISTER_TO_IDLE   (EM_ESCOPE_API_MASK | 0x007E)

Definition at line 523 of file event_machine_error.h.

◆ EM_ESCOPE_HOOKS_UNREGISTER_WHILE_IDLE

#define EM_ESCOPE_HOOKS_UNREGISTER_WHILE_IDLE   (EM_ESCOPE_API_MASK | 0x007F)

Definition at line 524 of file event_machine_error.h.

◆ EM_ESCOPE_INIT

#define EM_ESCOPE_INIT   (EM_ESCOPE_API_MASK | 0x0084)

Definition at line 531 of file event_machine_error.h.

◆ EM_ESCOPE_INIT_CORE

#define EM_ESCOPE_INIT_CORE   (EM_ESCOPE_API_MASK | 0x0085)

Definition at line 532 of file event_machine_error.h.

◆ EM_ESCOPE_INIT_LOCAL

#define EM_ESCOPE_INIT_LOCAL   (EM_ESCOPE_API_MASK | 0x0086)

Definition at line 533 of file event_machine_error.h.

◆ EM_ESCOPE_INTERNAL

#define EM_ESCOPE_INTERNAL (   escope)    (((escope) & EM_ESCOPE_MASK) == EM_ESCOPE_INTERNAL_MASK)

Test if the error scope identifies an EM Internal function

Definition at line 348 of file event_machine_error.h.

◆ EM_ESCOPE_INTERNAL_DONE_W_NOTIF_REQ

#define EM_ESCOPE_INTERNAL_DONE_W_NOTIF_REQ   (EM_ESCOPE_INTERNAL_MASK | 0x0019)

Definition at line 716 of file event_machine_error.h.

◆ EM_ESCOPE_INTERNAL_EVENT_RECV_FUNC

#define EM_ESCOPE_INTERNAL_EVENT_RECV_FUNC   (EM_ESCOPE_INTERNAL_MASK | 0x001A)

Definition at line 717 of file event_machine_error.h.

◆ EM_ESCOPE_INTERNAL_FIRST

#define EM_ESCOPE_INTERNAL_FIRST   (EM_ESCOPE_INTERNAL_MASK | 0x0000)

Definition at line 679 of file event_machine_error.h.

◆ EM_ESCOPE_INTERNAL_LAST

#define EM_ESCOPE_INTERNAL_LAST   (EM_ESCOPE_INTERNAL_MASK | 0x001E)

Definition at line 727 of file event_machine_error.h.

◆ EM_ESCOPE_INTERNAL_MASK

#define EM_ESCOPE_INTERNAL_MASK   (EM_ESCOPE_BIT | (EM_ESCOPE_INTERNAL_TYPE << 24))

EM Internal (non-API) functions error mask

Definition at line 331 of file event_machine_error.h.

◆ EM_ESCOPE_INTERNAL_NOTIF

#define EM_ESCOPE_INTERNAL_NOTIF   (EM_ESCOPE_INTERNAL_MASK | 0x001B)

Definition at line 718 of file event_machine_error.h.

◆ EM_ESCOPE_INTERNAL_TYPE

#define EM_ESCOPE_INTERNAL_TYPE   (0xFCu)

EM Internal (non-public API) functions error scope

Definition at line 314 of file event_machine_error.h.

◆ EM_ESCOPE_MASK

#define EM_ESCOPE_MASK   (0xFF000000)

Mask selects the high byte of the 32-bit escope

Definition at line 319 of file event_machine_error.h.

◆ EM_ESCOPE_ODP_EXT

#define EM_ESCOPE_ODP_EXT   (EM_ESCOPE_INTERNAL_MASK | 0x001D)

EM ODP extensions error scope

Definition at line 724 of file event_machine_error.h.

◆ EM_ESCOPE_ORDERED_PROCESSING_END

#define EM_ESCOPE_ORDERED_PROCESSING_END   (EM_ESCOPE_API_MASK | 0x00C4)

Definition at line 624 of file event_machine_error.h.

◆ EM_ESCOPE_PACKET_CONCAT

#define EM_ESCOPE_PACKET_CONCAT   (EM_ESCOPE_API_MASK | 0x0073)

Definition at line 510 of file event_machine_error.h.

◆ EM_ESCOPE_PACKET_HEADROOM

#define EM_ESCOPE_PACKET_HEADROOM   (EM_ESCOPE_API_MASK | 0x0068)

Definition at line 499 of file event_machine_error.h.

◆ EM_ESCOPE_PACKET_POINTER

#define EM_ESCOPE_PACKET_POINTER   (EM_ESCOPE_API_MASK | 0x0069)

Definition at line 500 of file event_machine_error.h.

◆ EM_ESCOPE_PACKET_POINTER_AND_SIZE

#define EM_ESCOPE_PACKET_POINTER_AND_SIZE   (EM_ESCOPE_API_MASK | 0x006A)

Definition at line 501 of file event_machine_error.h.

◆ EM_ESCOPE_PACKET_PULL_HEAD

#define EM_ESCOPE_PACKET_PULL_HEAD   (EM_ESCOPE_API_MASK | 0x006B)

Definition at line 502 of file event_machine_error.h.

◆ EM_ESCOPE_PACKET_PULL_TAIL

#define EM_ESCOPE_PACKET_PULL_TAIL   (EM_ESCOPE_API_MASK | 0x006C)

Definition at line 503 of file event_machine_error.h.

◆ EM_ESCOPE_PACKET_PUSH_HEAD

#define EM_ESCOPE_PACKET_PUSH_HEAD   (EM_ESCOPE_API_MASK | 0x006D)

Definition at line 504 of file event_machine_error.h.

◆ EM_ESCOPE_PACKET_PUSH_TAIL

#define EM_ESCOPE_PACKET_PUSH_TAIL   (EM_ESCOPE_API_MASK | 0x006E)

Definition at line 505 of file event_machine_error.h.

◆ EM_ESCOPE_PACKET_RESET

#define EM_ESCOPE_PACKET_RESET   (EM_ESCOPE_API_MASK | 0x006F)

Definition at line 506 of file event_machine_error.h.

◆ EM_ESCOPE_PACKET_RESIZE

#define EM_ESCOPE_PACKET_RESIZE   (EM_ESCOPE_API_MASK | 0x0070)

Definition at line 507 of file event_machine_error.h.

◆ EM_ESCOPE_PACKET_SIZE

#define EM_ESCOPE_PACKET_SIZE   (EM_ESCOPE_API_MASK | 0x0071)

Definition at line 508 of file event_machine_error.h.

◆ EM_ESCOPE_PACKET_TAILROOM

#define EM_ESCOPE_PACKET_TAILROOM   (EM_ESCOPE_API_MASK | 0x0072)

Definition at line 509 of file event_machine_error.h.

◆ EM_ESCOPE_POOL_CFG_INIT

#define EM_ESCOPE_POOL_CFG_INIT   (EM_ESCOPE_API_MASK | 0x008C)

Definition at line 541 of file event_machine_error.h.

◆ EM_ESCOPE_POOL_CREATE

#define EM_ESCOPE_POOL_CREATE   (EM_ESCOPE_API_MASK | 0x008D)

Definition at line 542 of file event_machine_error.h.

◆ EM_ESCOPE_POOL_DELETE

#define EM_ESCOPE_POOL_DELETE   (EM_ESCOPE_API_MASK | 0x008E)

Definition at line 543 of file event_machine_error.h.

◆ EM_ESCOPE_POOL_FIND

#define EM_ESCOPE_POOL_FIND   (EM_ESCOPE_API_MASK | 0x008F)

Definition at line 544 of file event_machine_error.h.

◆ EM_ESCOPE_POOL_FIRST

#define EM_ESCOPE_POOL_FIRST   (EM_ESCOPE_API_MASK | 0x0090)

Definition at line 545 of file event_machine_error.h.

◆ EM_ESCOPE_POOL_GET_FIRST

#define EM_ESCOPE_POOL_GET_FIRST   EM_ESCOPE_POOL_FIRST

Definition at line 558 of file event_machine_error.h.

◆ EM_ESCOPE_POOL_GET_NAME

#define EM_ESCOPE_POOL_GET_NAME   EM_ESCOPE_POOL_NAME

Definition at line 559 of file event_machine_error.h.

◆ EM_ESCOPE_POOL_GET_NEXT

#define EM_ESCOPE_POOL_GET_NEXT   EM_ESCOPE_POOL_NEXT

Definition at line 560 of file event_machine_error.h.

◆ EM_ESCOPE_POOL_INFO

#define EM_ESCOPE_POOL_INFO   (EM_ESCOPE_API_MASK | 0x0091)

Definition at line 546 of file event_machine_error.h.

◆ EM_ESCOPE_POOL_NAME

#define EM_ESCOPE_POOL_NAME   (EM_ESCOPE_API_MASK | 0x0092)

Definition at line 547 of file event_machine_error.h.

◆ EM_ESCOPE_POOL_NEXT

#define EM_ESCOPE_POOL_NEXT   (EM_ESCOPE_API_MASK | 0x0093)

Definition at line 548 of file event_machine_error.h.

◆ EM_ESCOPE_POOL_NUM_SUBPOOLS

#define EM_ESCOPE_POOL_NUM_SUBPOOLS   (EM_ESCOPE_API_MASK | 0x0094)

Definition at line 549 of file event_machine_error.h.

◆ EM_ESCOPE_POOL_STATS

#define EM_ESCOPE_POOL_STATS   (EM_ESCOPE_API_MASK | 0x0095)

Definition at line 550 of file event_machine_error.h.

◆ EM_ESCOPE_POOL_STATS_OPT

#define EM_ESCOPE_POOL_STATS_OPT   (EM_ESCOPE_API_MASK | 0x009B)

Definition at line 556 of file event_machine_error.h.

◆ EM_ESCOPE_POOL_STATS_RESET

#define EM_ESCOPE_POOL_STATS_RESET   (EM_ESCOPE_API_MASK | 0x0096)

Definition at line 551 of file event_machine_error.h.

◆ EM_ESCOPE_POOL_STATS_SELECTED

#define EM_ESCOPE_POOL_STATS_SELECTED   (EM_ESCOPE_API_MASK | 0x0097)

Definition at line 552 of file event_machine_error.h.

◆ EM_ESCOPE_POOL_SUBPOOL_STATS

#define EM_ESCOPE_POOL_SUBPOOL_STATS   (EM_ESCOPE_API_MASK | 0x0098)

Definition at line 553 of file event_machine_error.h.

◆ EM_ESCOPE_POOL_SUBPOOL_STATS_RESET

#define EM_ESCOPE_POOL_SUBPOOL_STATS_RESET   (EM_ESCOPE_API_MASK | 0x0099)

Definition at line 554 of file event_machine_error.h.

◆ EM_ESCOPE_POOL_SUBPOOL_STATS_SELECTED

#define EM_ESCOPE_POOL_SUBPOOL_STATS_SELECTED   (EM_ESCOPE_API_MASK | 0x009A)

Definition at line 555 of file event_machine_error.h.

◆ EM_ESCOPE_PRESCHEDULE

#define EM_ESCOPE_PRESCHEDULE   (EM_ESCOPE_API_MASK | 0x00C5)

Definition at line 625 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_AGGR

#define EM_ESCOPE_QUEUE_AGGR   (EM_ESCOPE_API_MASK | 0x00AA)

Definition at line 585 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_AGGR_CONF_INIT

#define EM_ESCOPE_QUEUE_AGGR_CONF_INIT   (EM_ESCOPE_API_MASK | 0x00A9)

Definition at line 584 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_AGGR_INFO

#define EM_ESCOPE_QUEUE_AGGR_INFO   (EM_ESCOPE_API_MASK | 0x00AB)

Definition at line 586 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_AGGR_LIST

#define EM_ESCOPE_QUEUE_AGGR_LIST   (EM_ESCOPE_API_MASK | 0x00AC)

Definition at line 587 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_AGGR_NUM

#define EM_ESCOPE_QUEUE_AGGR_NUM   (EM_ESCOPE_API_MASK | 0x00AD)

Definition at line 588 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_AGROUP

#define EM_ESCOPE_QUEUE_AGROUP   (EM_ESCOPE_API_MASK | 0x00AE)

Definition at line 589 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_CONTEXT

#define EM_ESCOPE_QUEUE_CONTEXT   (EM_ESCOPE_API_MASK | 0x00AF)

Definition at line 590 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_CREATE

#define EM_ESCOPE_QUEUE_CREATE   (EM_ESCOPE_API_MASK | 0x00B0)

Definition at line 591 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_CREATE_AG

#define EM_ESCOPE_QUEUE_CREATE_AG   (EM_ESCOPE_API_MASK | 0x0009)

Definition at line 364 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_CREATE_PARAM

#define EM_ESCOPE_QUEUE_CREATE_PARAM   (EM_ESCOPE_API_MASK | 0x00B2)

Definition at line 593 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_CREATE_STATIC

#define EM_ESCOPE_QUEUE_CREATE_STATIC   (EM_ESCOPE_API_MASK | 0x00B1)

Definition at line 592 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_CREATE_STATIC_AG

#define EM_ESCOPE_QUEUE_CREATE_STATIC_AG   (EM_ESCOPE_API_MASK | 0x000A)

Definition at line 365 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_CURRENT

#define EM_ESCOPE_QUEUE_CURRENT   (EM_ESCOPE_API_MASK | 0x00B3)

Definition at line 594 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_DELETE

#define EM_ESCOPE_QUEUE_DELETE   (EM_ESCOPE_API_MASK | 0x00B4)

Definition at line 595 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_DEQUEUE

#define EM_ESCOPE_QUEUE_DEQUEUE   (EM_ESCOPE_API_MASK | 0x00B5)

Definition at line 596 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_DEQUEUE_MULTI

#define EM_ESCOPE_QUEUE_DEQUEUE_MULTI   (EM_ESCOPE_API_MASK | 0x00B6)

Definition at line 597 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_DISABLE

#define EM_ESCOPE_QUEUE_DISABLE   (EM_ESCOPE_INTERNAL_MASK | 0x000F)

Definition at line 702 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_DISABLE_ALL

#define EM_ESCOPE_QUEUE_DISABLE_ALL   (EM_ESCOPE_INTERNAL_MASK | 0x0010)

Definition at line 703 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_ENABLE

#define EM_ESCOPE_QUEUE_ENABLE   (EM_ESCOPE_INTERNAL_MASK | 0x0011)

Definition at line 704 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_ENABLE_ALL

#define EM_ESCOPE_QUEUE_ENABLE_ALL   (EM_ESCOPE_INTERNAL_MASK | 0x0012)

Definition at line 705 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_FIND

#define EM_ESCOPE_QUEUE_FIND   (EM_ESCOPE_API_MASK | 0x00B7)

Definition at line 598 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_FIRST

#define EM_ESCOPE_QUEUE_FIRST   (EM_ESCOPE_API_MASK | 0x00B8)

Definition at line 599 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_GET_CONTEXT

#define EM_ESCOPE_QUEUE_GET_CONTEXT   EM_ESCOPE_QUEUE_CONTEXT

Definition at line 612 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_GET_FIRST

#define EM_ESCOPE_QUEUE_GET_FIRST   EM_ESCOPE_QUEUE_FIRST

Definition at line 613 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_GET_GROUP

#define EM_ESCOPE_QUEUE_GET_GROUP   EM_ESCOPE_QUEUE_QGROUP

Definition at line 614 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_GET_INDEX

#define EM_ESCOPE_QUEUE_GET_INDEX   EM_ESCOPE_QUEUE_INDEX

Definition at line 615 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_GET_NAME

#define EM_ESCOPE_QUEUE_GET_NAME   EM_ESCOPE_QUEUE_NAME

Definition at line 616 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_GET_NEXT

#define EM_ESCOPE_QUEUE_GET_NEXT   EM_ESCOPE_QUEUE_NEXT

Definition at line 617 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_GET_NUM_PRIO

#define EM_ESCOPE_QUEUE_GET_NUM_PRIO   EM_ESCOPE_QUEUE_NUM_PRIO

Definition at line 618 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_GET_PRIORITY

#define EM_ESCOPE_QUEUE_GET_PRIORITY   EM_ESCOPE_QUEUE_PRIORITY

Definition at line 619 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_GET_TYPE

#define EM_ESCOPE_QUEUE_GET_TYPE   EM_ESCOPE_QUEUE_TYPE

Definition at line 620 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_GROUP_ADD_CORE

#define EM_ESCOPE_QUEUE_GROUP_ADD_CORE   (EM_ESCOPE_INTERNAL_MASK | 0x0014)

Definition at line 709 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_GROUP_CREATE

#define EM_ESCOPE_QUEUE_GROUP_CREATE   (EM_ESCOPE_API_MASK | 0x009C)

Definition at line 563 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_GROUP_CREATE_SYNC

#define EM_ESCOPE_QUEUE_GROUP_CREATE_SYNC   (EM_ESCOPE_API_MASK | 0x009D)

Definition at line 564 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_GROUP_DELETE

#define EM_ESCOPE_QUEUE_GROUP_DELETE   (EM_ESCOPE_API_MASK | 0x009E)

Definition at line 565 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_GROUP_DELETE_SYNC

#define EM_ESCOPE_QUEUE_GROUP_DELETE_SYNC   (EM_ESCOPE_API_MASK | 0x009F)

Definition at line 566 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_GROUP_FIND

#define EM_ESCOPE_QUEUE_GROUP_FIND   (EM_ESCOPE_API_MASK | 0x00A0)

Definition at line 567 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_GROUP_FIRST

#define EM_ESCOPE_QUEUE_GROUP_FIRST   (EM_ESCOPE_API_MASK | 0x00A1)

Definition at line 568 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_GROUP_GET_FIRST

#define EM_ESCOPE_QUEUE_GROUP_GET_FIRST   EM_ESCOPE_QUEUE_GROUP_FIRST

Definition at line 577 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_GROUP_GET_NAME

#define EM_ESCOPE_QUEUE_GROUP_GET_NAME   EM_ESCOPE_QUEUE_GROUP_NAME

Definition at line 578 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_GROUP_GET_NEXT

#define EM_ESCOPE_QUEUE_GROUP_GET_NEXT   EM_ESCOPE_QUEUE_GROUP_NEXT

Definition at line 579 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_GROUP_MASK

#define EM_ESCOPE_QUEUE_GROUP_MASK   (EM_ESCOPE_API_MASK | 0x00A2)

Definition at line 569 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_GROUP_MODIFY

#define EM_ESCOPE_QUEUE_GROUP_MODIFY   (EM_ESCOPE_API_MASK | 0x00A3)

Definition at line 570 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_GROUP_MODIFY_SYNC

#define EM_ESCOPE_QUEUE_GROUP_MODIFY_SYNC   (EM_ESCOPE_API_MASK | 0x00A4)

Definition at line 571 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_GROUP_NAME

#define EM_ESCOPE_QUEUE_GROUP_NAME   (EM_ESCOPE_API_MASK | 0x00A5)

Definition at line 572 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_GROUP_NEXT

#define EM_ESCOPE_QUEUE_GROUP_NEXT   (EM_ESCOPE_API_MASK | 0x00A6)

Definition at line 573 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_GROUP_QUEUE_FIRST

#define EM_ESCOPE_QUEUE_GROUP_QUEUE_FIRST   (EM_ESCOPE_API_MASK | 0x00A7)

Definition at line 574 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_GROUP_QUEUE_GET_FIRST

#define EM_ESCOPE_QUEUE_GROUP_QUEUE_GET_FIRST   EM_ESCOPE_QUEUE_GROUP_QUEUE_FIRST

Definition at line 580 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_GROUP_QUEUE_GET_NEXT

#define EM_ESCOPE_QUEUE_GROUP_QUEUE_GET_NEXT   EM_ESCOPE_QUEUE_GROUP_QUEUE_NEXT

Definition at line 581 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_GROUP_QUEUE_NEXT

#define EM_ESCOPE_QUEUE_GROUP_QUEUE_NEXT   (EM_ESCOPE_API_MASK | 0x00A8)

Definition at line 575 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_GROUP_REM_CORE

#define EM_ESCOPE_QUEUE_GROUP_REM_CORE   (EM_ESCOPE_INTERNAL_MASK | 0x0015)

Definition at line 710 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_INDEX

#define EM_ESCOPE_QUEUE_INDEX   (EM_ESCOPE_API_MASK | 0x00B9)

Definition at line 600 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_NAME

#define EM_ESCOPE_QUEUE_NAME   (EM_ESCOPE_API_MASK | 0x00BA)

Definition at line 601 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_NEXT

#define EM_ESCOPE_QUEUE_NEXT   (EM_ESCOPE_API_MASK | 0x00BB)

Definition at line 602 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_NUM_PRIO

#define EM_ESCOPE_QUEUE_NUM_PRIO   (EM_ESCOPE_API_MASK | 0x00BC)

Definition at line 603 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_PARAM_INIT

#define EM_ESCOPE_QUEUE_PARAM_INIT   (EM_ESCOPE_API_MASK | 0x00BD)

Definition at line 604 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_PRIORITY

#define EM_ESCOPE_QUEUE_PRIORITY   (EM_ESCOPE_API_MASK | 0x00BE)

Definition at line 605 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_QGROUP

#define EM_ESCOPE_QUEUE_QGROUP   (EM_ESCOPE_API_MASK | 0x00BF)

Definition at line 606 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_SET_CONTEXT

#define EM_ESCOPE_QUEUE_SET_CONTEXT   (EM_ESCOPE_API_MASK | 0x00C0)

Definition at line 607 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_STATE_CHANGE

#define EM_ESCOPE_QUEUE_STATE_CHANGE   (EM_ESCOPE_INTERNAL_MASK | 0x0013)

Definition at line 706 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_STATIC_HANDLE

#define EM_ESCOPE_QUEUE_STATIC_HANDLE   (EM_ESCOPE_API_MASK | 0x00C2)

Definition at line 609 of file event_machine_error.h.

◆ EM_ESCOPE_QUEUE_TYPE

#define EM_ESCOPE_QUEUE_TYPE   (EM_ESCOPE_API_MASK | 0x00C1)

Definition at line 608 of file event_machine_error.h.

◆ EM_ESCOPE_REGISTER_ERROR_HANDLER

#define EM_ESCOPE_REGISTER_ERROR_HANDLER   (EM_ESCOPE_API_MASK | 0x0033)

Definition at line 428 of file event_machine_error.h.

◆ EM_ESCOPE_SCHED_CONTEXT_TYPE_CURRENT

#define EM_ESCOPE_SCHED_CONTEXT_TYPE_CURRENT   (EM_ESCOPE_API_MASK | 0x00C6)

Definition at line 626 of file event_machine_error.h.

◆ EM_ESCOPE_SEND

#define EM_ESCOPE_SEND   (EM_ESCOPE_API_MASK | 0x0066)

Definition at line 487 of file event_machine_error.h.

◆ EM_ESCOPE_SEND_CTRL_QUEUE

#define EM_ESCOPE_SEND_CTRL_QUEUE   (EM_ESCOPE_INTERNAL_MASK | 0x001C)

Definition at line 719 of file event_machine_error.h.

◆ EM_ESCOPE_SEND_GROUP

#define EM_ESCOPE_SEND_GROUP   (EM_ESCOPE_API_MASK | 0x0041)

Definition at line 444 of file event_machine_error.h.

◆ EM_ESCOPE_SEND_GROUP_MULTI

#define EM_ESCOPE_SEND_GROUP_MULTI   (EM_ESCOPE_API_MASK | 0x0042)

Definition at line 445 of file event_machine_error.h.

◆ EM_ESCOPE_SEND_MULTI

#define EM_ESCOPE_SEND_MULTI   (EM_ESCOPE_API_MASK | 0x0067)

Definition at line 488 of file event_machine_error.h.

◆ EM_ESCOPE_TERM

#define EM_ESCOPE_TERM   (EM_ESCOPE_API_MASK | 0x0087)

Definition at line 534 of file event_machine_error.h.

◆ EM_ESCOPE_TERM_CORE

#define EM_ESCOPE_TERM_CORE   (EM_ESCOPE_API_MASK | 0x0088)

Definition at line 535 of file event_machine_error.h.

◆ EM_ESCOPE_TERM_LOCAL

#define EM_ESCOPE_TERM_LOCAL   (EM_ESCOPE_API_MASK | 0x0089)

Definition at line 536 of file event_machine_error.h.

◆ EM_ESCOPE_TERM_LOCAL_INIT

#define EM_ESCOPE_TERM_LOCAL_INIT   (EM_ESCOPE_API_MASK | 0x008A)

Definition at line 537 of file event_machine_error.h.

◆ EM_ESCOPE_TIMER_ALL

#define EM_ESCOPE_TIMER_ALL   (EM_ESCOPE_API_MASK | 0x00C7)

Definition at line 629 of file event_machine_error.h.

◆ EM_ESCOPE_TIMER_ATTR

#define EM_ESCOPE_TIMER_ATTR   (EM_ESCOPE_API_MASK | 0x00C8)

Definition at line 630 of file event_machine_error.h.

◆ EM_ESCOPE_TIMER_ATTR_INIT

#define EM_ESCOPE_TIMER_ATTR_INIT   (EM_ESCOPE_API_MASK | 0x00C9)

Definition at line 631 of file event_machine_error.h.

◆ EM_ESCOPE_TIMER_CAPABILITY

#define EM_ESCOPE_TIMER_CAPABILITY   (EM_ESCOPE_API_MASK | 0x00CA)

Definition at line 632 of file event_machine_error.h.

◆ EM_ESCOPE_TIMER_CREATE

#define EM_ESCOPE_TIMER_CREATE   (EM_ESCOPE_API_MASK | 0x00CB)

Definition at line 633 of file event_machine_error.h.

◆ EM_ESCOPE_TIMER_CUR_TICK

#define EM_ESCOPE_TIMER_CUR_TICK   (EM_ESCOPE_API_MASK | 0x00CC)

Definition at line 634 of file event_machine_error.h.

◆ EM_ESCOPE_TIMER_DELETE

#define EM_ESCOPE_TIMER_DELETE   (EM_ESCOPE_API_MASK | 0x00CD)

Definition at line 635 of file event_machine_error.h.

◆ EM_ESCOPE_TIMER_FREQ

#define EM_ESCOPE_TIMER_FREQ   (EM_ESCOPE_API_MASK | 0x00CE)

Definition at line 636 of file event_machine_error.h.

◆ EM_ESCOPE_TIMER_GET_ALL

#define EM_ESCOPE_TIMER_GET_ALL   EM_ESCOPE_TIMER_ALL

Definition at line 659 of file event_machine_error.h.

◆ EM_ESCOPE_TIMER_GET_ATTR

#define EM_ESCOPE_TIMER_GET_ATTR   EM_ESCOPE_TIMER_ATTR

Definition at line 660 of file event_machine_error.h.

◆ EM_ESCOPE_TIMER_GET_FREQ

#define EM_ESCOPE_TIMER_GET_FREQ   EM_ESCOPE_TIMER_FREQ

Definition at line 661 of file event_machine_error.h.

◆ EM_ESCOPE_TIMER_NS_TO_TICK

#define EM_ESCOPE_TIMER_NS_TO_TICK   (EM_ESCOPE_API_MASK | 0x00CF)

Definition at line 637 of file event_machine_error.h.

◆ EM_ESCOPE_TIMER_RES_CAPABILITY

#define EM_ESCOPE_TIMER_RES_CAPABILITY   (EM_ESCOPE_API_MASK | 0x00D0)

Definition at line 638 of file event_machine_error.h.

◆ EM_ESCOPE_TIMER_RING_CREATE

#define EM_ESCOPE_TIMER_RING_CREATE   (EM_ESCOPE_API_MASK | 0x00D1)

Definition at line 639 of file event_machine_error.h.

◆ EM_ESCOPE_TIMER_RING_FREQ_CREATE

#define EM_ESCOPE_TIMER_RING_FREQ_CREATE   (EM_ESCOPE_API_MASK | 0x00D2)

Definition at line 640 of file event_machine_error.h.

◆ EM_ESCOPE_TIMER_TICK_TO_NS

#define EM_ESCOPE_TIMER_TICK_TO_NS   (EM_ESCOPE_API_MASK | 0x00D3)

Definition at line 641 of file event_machine_error.h.

◆ EM_ESCOPE_TMO_ACK

#define EM_ESCOPE_TMO_ACK   (EM_ESCOPE_API_MASK | 0x00D4)

Definition at line 642 of file event_machine_error.h.

◆ EM_ESCOPE_TMO_CANCEL

#define EM_ESCOPE_TMO_CANCEL   (EM_ESCOPE_API_MASK | 0x00D5)

Definition at line 643 of file event_machine_error.h.

◆ EM_ESCOPE_TMO_CREATE

#define EM_ESCOPE_TMO_CREATE   (EM_ESCOPE_API_MASK | 0x00D6)

Definition at line 644 of file event_machine_error.h.

◆ EM_ESCOPE_TMO_CREATE_ARG

#define EM_ESCOPE_TMO_CREATE_ARG   (EM_ESCOPE_API_MASK | 0x00D7)

Definition at line 645 of file event_machine_error.h.

◆ EM_ESCOPE_TMO_DELETE

#define EM_ESCOPE_TMO_DELETE   (EM_ESCOPE_API_MASK | 0x00D8)

Definition at line 646 of file event_machine_error.h.

◆ EM_ESCOPE_TMO_GET_STATE

#define EM_ESCOPE_TMO_GET_STATE   EM_ESCOPE_TMO_STATE

Definition at line 662 of file event_machine_error.h.

◆ EM_ESCOPE_TMO_GET_STATS

#define EM_ESCOPE_TMO_GET_STATS   EM_ESCOPE_TMO_STATS

Definition at line 663 of file event_machine_error.h.

◆ EM_ESCOPE_TMO_GET_TIMER

#define EM_ESCOPE_TMO_GET_TIMER   EM_ESCOPE_TMO_TIMER

Definition at line 664 of file event_machine_error.h.

◆ EM_ESCOPE_TMO_GET_TYPE

#define EM_ESCOPE_TMO_GET_TYPE   EM_ESCOPE_TMO_TYPE

Definition at line 665 of file event_machine_error.h.

◆ EM_ESCOPE_TMO_GET_USERPTR

#define EM_ESCOPE_TMO_GET_USERPTR   EM_ESCOPE_TMO_USERPTR

Definition at line 666 of file event_machine_error.h.

◆ EM_ESCOPE_TMO_RING_ACK

#define EM_ESCOPE_TMO_RING_ACK   (EM_ESCOPE_API_MASK | 0x00E2)

Definition at line 656 of file event_machine_error.h.

◆ EM_ESCOPE_TMO_SET_ABS

#define EM_ESCOPE_TMO_SET_ABS   (EM_ESCOPE_API_MASK | 0x00D9)

Definition at line 647 of file event_machine_error.h.

◆ EM_ESCOPE_TMO_SET_PERIODIC

#define EM_ESCOPE_TMO_SET_PERIODIC   (EM_ESCOPE_API_MASK | 0x00DA)

Definition at line 648 of file event_machine_error.h.

◆ EM_ESCOPE_TMO_SET_PERIODIC_RING

#define EM_ESCOPE_TMO_SET_PERIODIC_RING   (EM_ESCOPE_API_MASK | 0x00DB)

Definition at line 649 of file event_machine_error.h.

◆ EM_ESCOPE_TMO_SET_PERIODIC_RING_FREQ

#define EM_ESCOPE_TMO_SET_PERIODIC_RING_FREQ   (EM_ESCOPE_API_MASK | 0x00E3)

Definition at line 657 of file event_machine_error.h.

◆ EM_ESCOPE_TMO_SET_REL

#define EM_ESCOPE_TMO_SET_REL   (EM_ESCOPE_API_MASK | 0x00DC)

Definition at line 650 of file event_machine_error.h.

◆ EM_ESCOPE_TMO_STATE

#define EM_ESCOPE_TMO_STATE   (EM_ESCOPE_API_MASK | 0x00DD)

Definition at line 651 of file event_machine_error.h.

◆ EM_ESCOPE_TMO_STATS

#define EM_ESCOPE_TMO_STATS   (EM_ESCOPE_API_MASK | 0x00DE)

Definition at line 652 of file event_machine_error.h.

◆ EM_ESCOPE_TMO_TIMER

#define EM_ESCOPE_TMO_TIMER   (EM_ESCOPE_API_MASK | 0x00DF)

Definition at line 653 of file event_machine_error.h.

◆ EM_ESCOPE_TMO_TYPE

#define EM_ESCOPE_TMO_TYPE   (EM_ESCOPE_API_MASK | 0x00E0)

Definition at line 654 of file event_machine_error.h.

◆ EM_ESCOPE_TMO_USERPTR

#define EM_ESCOPE_TMO_USERPTR   (EM_ESCOPE_API_MASK | 0x00E1)

Definition at line 655 of file event_machine_error.h.

◆ EM_ESCOPE_UNREGISTER_ERROR_HANDLER

#define EM_ESCOPE_UNREGISTER_ERROR_HANDLER   (EM_ESCOPE_API_MASK | 0x0034)

Definition at line 429 of file event_machine_error.h.

◆ EM_FATAL

#define EM_FATAL (   error)    EM_ERROR_SET_FATAL((error))

Alias to EM_ERROR_SET_FATAL(), shorter name, backwards compatible

Definition at line 83 of file event_machine_error.h.

◆ EM_OK

◆ PRI_ESCOPE

#define PRI_ESCOPE   PRIu32

Definition at line 185 of file event_machine_error.h.

◆ PRI_STAT

#define PRI_STAT   PRIu32

Definition at line 97 of file event_machine_error.h.

◆ PRIxESCOPE

#define PRIxESCOPE   PRIx32

Definition at line 186 of file event_machine_error.h.

◆ PRIxSTAT

#define PRIxSTAT   PRIx32

Definition at line 98 of file event_machine_error.h.

Typedef Documentation

◆ em_error_handler_t

typedef em_status_t(* em_error_handler_t) (em_eo_t eo, em_status_t error, em_escope_t escope, va_list args)

Error handler prototype

The error handler is called after EM notices an error or the user has called em_error().

The user can register EO specific and/or EM global error handlers. When an error occurs, EM calls the EO specific error handler, if registered. If there's no EO specific handler registered or the error occurs outside of an EO context, EM calls the global error handler.

The error handler is called with the original error code (that's about to be returned) from the API call or em_error(). The error scope identifies the source of the error and how the error code and the variable arguments should be interpreted (number of arguments and types) in an implementation specific way.

Parameters
eoExecution object id
errorThe error code
escopeError scope. Identifies the scope for interpreting the error code and variable arguments.
argsVariable number and type of arguments
Returns
The function may not return depending on implementation, error code or error scope. If it returns, it can return the original or modified error code or even EM_OK if it was able to fix the problem.
See also
em_register_error_handler(), em_eo_register_error_handler()

Definition at line 217 of file event_machine_error.h.

◆ em_escope_t

Error scope.

Identifies the error scope for interpreting error codes and variable arguments.

See also
em_error_handler_t(), em_error()

Definition at line 184 of file event_machine_error.h.

◆ em_log_func_t

typedef int(* em_log_func_t) (em_log_level_t level, const char *fmt,...) __attribute__((format(printf

EM log function, variable number of args

Note
: both 'log()' and 'vlog()' need to be implemented if used.

Definition at line 284 of file event_machine_error.h.

◆ em_status_e

typedef enum em_status_e em_status_e

Error/Status codes used by em_status_t

◆ em_status_t

Error/Status code.

EM_OK (0) is the general code for success, other values describe failed operation. There is a generic error code EM_ERROR, but application should normally test for not equal to EM_OK.

See also
em_error_handler_t(), em_error()

Definition at line 96 of file event_machine_error.h.

◆ em_vlog_func_t

typedef int(*) typedef int(* em_vlog_func_t) (em_log_level_t level, const char *fmt, va_list args)

EM log function, va_list instead of variable number of args

Note
: both 'log()' and 'vlog()' need to be implemented if used.

Definition at line 292 of file event_machine_error.h.

Enumeration Type Documentation

◆ em_log_level_t

EM log level

Definition at line 273 of file event_machine_error.h.

◆ em_status_e

Error/Status codes used by em_status_t

Enumerator
EM_ERR_BAD_ARG 

Invalid argument

EM_ERR_BAD_STATE 

Illegal state

EM_ERR_BAD_ID 

ID not from a valid range

EM_ERR_BAD_TYPE 

Invalid type

EM_ERR_BAD_CONTEXT 

Illegal context

EM_ERR_BAD_POINTER 

Pointer from bad memory area (e.g. NULL)

EM_ERR_NOT_CREATED 

Resource not created

EM_ERR_NOT_FREE 

Resource already reserved by someone else

EM_ERR_NOT_FOUND 

Resource not found

EM_ERR_NOT_INITIALIZED 

Not properly initialized (e.g. not using provided initializer)

EM_ERR_NOT_IMPLEMENTED 

Implementation missing (placeholder)

EM_ERR_NOT_SUPPORTED 

Feature or value combination is not supported

EM_ERR_ALLOC_FAILED 

Resource allocation failed

EM_ERR_OPERATION_FAILED 

Operation failed

EM_ERR_LIB_FAILED 

Failure in a library function

EM_ERR_TOO_LARGE 

Value over the limit

EM_ERR_TOO_SMALL 

Value under the limit

EM_ERR_EVENT_STATE 

ESV (reserved): Invalid event state detected, e.g. double-free

EM_ERR_TIMEOUT 

Operation timeout (e.g. waiting on a lock)

EM_ERR_TOONEAR 

Operation is too near current time or in past

EM_ERR_TOOFAR 

Time target too far, e.g. timeout exceeds maximum supported value

EM_ERR_CANCELED 

Timeout was canceled, e.g. periodic timer

EM_ERR_BUSY 

Resource is busy

EM_ERR 

Other error. This is the last error code (for bounds checking)

Definition at line 117 of file event_machine_error.h.

Function Documentation

◆ em_error()

void em_error ( em_status_t  error,
em_escope_t  escope,
  ... 
)

Report an error.

Reported errors are handled by the appropriate (EO specific or global) error handler.

Depending on the error/scope/implementation, the function call may not return.

Parameters
errorError code
escopeError scope. Identifies the scope for interpreting the error code and the variable arguments.
...Variable number and type of arguments
See also
em_register_error_handler(), em_error_handler_t()
Examples
error.c.

Definition at line 79 of file event_machine_error.c.

◆ em_register_error_handler()

em_status_t em_register_error_handler ( em_error_handler_t  handler)

Register a global error handler.

The global error handler is called on EM errors or by em_error() calls, except when running in an EO context with an EO specific error handler registered (in which case the EO specific error handler takes precedence). Note, the provided function will override any previously registered global error handler. The EM default global error handler is used when no user provided global error handler is registered.

Parameters
handlerError handler.
Returns
EM_OK if successful.
See also
em_eo_register_error_handler(), em_unregister_error_handler(), em_error_handler_t()
Examples
api_hooks.c, atomic_processing_end.c, bench_pool.c, cli_top.c, dispatcher_callback.c, error.c, event_group.c, event_group_abort.c, event_group_assign_end.c, event_group_chaining.c, event_types.c, fractal.c, hello.c, loop_united.c, ordered.c, pool_perf.c, queue_group.c, queue_groups.c, queue_types_ag.c, queue_types_local.c, queues.c, queues_local.c, queues_output.c, queues_unscheduled.c, scheduling_latency.c, send_multi.c, timer_hello.c, timer_test.c, timer_test_periodic.c, and timer_test_ring.c.

Definition at line 47 of file event_machine_error.c.

◆ em_unregister_error_handler()

em_status_t em_unregister_error_handler ( void  )