![]() |
EM-ODP 4.4.0
Event Machine on ODP
|
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,...) |
Error/Exception management
EM provides two basic mechanisms to manage operational exceptions
| #define EM_ERROR 0xffffffff |
Operation not successful.
Generic error code, other error codes are system specific.
Definition at line 112 of file event_machine_error.h.
| #define EM_ERROR_FATAL_MASK 0x80000000 |
Fatal error mask
Definition at line 68 of file event_machine_error.h.
| #define EM_ERROR_IS_FATAL | ( | error | ) | (!!(EM_ERROR_FATAL_MASK & (error))) |
Test if error is fatal
Definition at line 73 of file event_machine_error.h.
| #define EM_ERROR_SET_FATAL | ( | error | ) | (EM_ERROR_FATAL_MASK | (error)) |
Set the error code as fatal
Definition at line 78 of file event_machine_error.h.
| #define EM_ESCOPE | ( | escope | ) | (EM_ESCOPE_BIT & (escope)) |
Test if the error scope identifies an EM function - API, add-on API or other internal!
Definition at line 336 of file event_machine_error.h.
| #define EM_ESCOPE_ADD_ON_API_BASE (EM_ESCOPE_ADDON_API_MASK | 0x0000) |
Definition at line 674 of file event_machine_error.h.
| #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.
| #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.
| #define EM_ESCOPE_ADDON_API_TYPE (0xFEu) |
EM Add-on API functions error scope
Definition at line 310 of file event_machine_error.h.
| #define EM_ESCOPE_ALLOC (EM_ESCOPE_API_MASK | 0x0043) |
Definition at line 452 of file event_machine_error.h.
| #define EM_ESCOPE_ALLOC_MULTI (EM_ESCOPE_API_MASK | 0x0044) |
Definition at line 453 of file event_machine_error.h.
| #define EM_ESCOPE_API | ( | escope | ) | (((escope) & EM_ESCOPE_MASK) == EM_ESCOPE_API_MASK) |
Test if the error scope identifies an EM API function
Definition at line 340 of file event_machine_error.h.
| #define EM_ESCOPE_API_FIRST (EM_ESCOPE_API_MASK | 0x0000) |
Definition at line 353 of file event_machine_error.h.
| #define EM_ESCOPE_API_LAST (EM_ESCOPE_API_MASK | 0x00FF) |
Definition at line 668 of file event_machine_error.h.
| #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.
| #define EM_ESCOPE_API_TYPE (0xFFu) |
EM API functions error scope
Definition at line 306 of file event_machine_error.h.
| #define EM_ESCOPE_ATOMIC_GROUP_CREATE (EM_ESCOPE_API_MASK | 0x0001) |
Definition at line 356 of file event_machine_error.h.
| #define EM_ESCOPE_ATOMIC_GROUP_DELETE (EM_ESCOPE_API_MASK | 0x0002) |
Definition at line 357 of file event_machine_error.h.
| #define EM_ESCOPE_ATOMIC_GROUP_FIND (EM_ESCOPE_API_MASK | 0x0003) |
Definition at line 358 of file event_machine_error.h.
| #define EM_ESCOPE_ATOMIC_GROUP_FIRST (EM_ESCOPE_API_MASK | 0x0004) |
Definition at line 359 of file event_machine_error.h.
| #define EM_ESCOPE_ATOMIC_GROUP_GET EM_ESCOPE_QUEUE_AGROUP |
Definition at line 611 of file event_machine_error.h.
| #define EM_ESCOPE_ATOMIC_GROUP_GET_FIRST EM_ESCOPE_ATOMIC_GROUP_FIRST |
Definition at line 367 of file event_machine_error.h.
| #define EM_ESCOPE_ATOMIC_GROUP_GET_NAME EM_ESCOPE_ATOMIC_GROUP_NAME |
Definition at line 368 of file event_machine_error.h.
| #define EM_ESCOPE_ATOMIC_GROUP_GET_NEXT EM_ESCOPE_ATOMIC_GROUP_NEXT |
Definition at line 369 of file event_machine_error.h.
| #define EM_ESCOPE_ATOMIC_GROUP_NAME (EM_ESCOPE_API_MASK | 0x0005) |
Definition at line 360 of file event_machine_error.h.
| #define EM_ESCOPE_ATOMIC_GROUP_NEXT (EM_ESCOPE_API_MASK | 0x0006) |
Definition at line 361 of file event_machine_error.h.
| #define EM_ESCOPE_ATOMIC_GROUP_QUEUE_FIRST (EM_ESCOPE_API_MASK | 0x0007) |
Definition at line 362 of file event_machine_error.h.
| #define EM_ESCOPE_ATOMIC_GROUP_QUEUE_GET_FIRST EM_ESCOPE_ATOMIC_GROUP_QUEUE_FIRST |
Definition at line 370 of file event_machine_error.h.
| #define EM_ESCOPE_ATOMIC_GROUP_QUEUE_GET_NEXT EM_ESCOPE_ATOMIC_GROUP_QUEUE_NEXT |
Definition at line 371 of file event_machine_error.h.
| #define EM_ESCOPE_ATOMIC_GROUP_QUEUE_NEXT (EM_ESCOPE_API_MASK | 0x0008) |
Definition at line 363 of file event_machine_error.h.
| #define EM_ESCOPE_ATOMIC_PROCESSING_END (EM_ESCOPE_API_MASK | 0x00C3) |
Definition at line 623 of file event_machine_error.h.
| #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.
| #define EM_ESCOPE_CFGFILE_OPTS (EM_ESCOPE_API_MASK | 0x008B) |
Definition at line 538 of file event_machine_error.h.
| #define EM_ESCOPE_CONF_INIT (EM_ESCOPE_API_MASK | 0x0080) |
Definition at line 527 of file event_machine_error.h.
| #define EM_ESCOPE_CONF_LOCAL_INIT (EM_ESCOPE_API_MASK | 0x0081) |
Definition at line 528 of file event_machine_error.h.
| #define EM_ESCOPE_CONF_LOCAL_OPTS (EM_ESCOPE_API_MASK | 0x0083) |
Definition at line 530 of file event_machine_error.h.
| #define EM_ESCOPE_CONF_OPTS (EM_ESCOPE_API_MASK | 0x0082) |
Definition at line 529 of file event_machine_error.h.
| #define EM_ESCOPE_CORE_COUNT (EM_ESCOPE_API_MASK | 0x000B) |
Definition at line 374 of file event_machine_error.h.
| #define EM_ESCOPE_CORE_ID (EM_ESCOPE_API_MASK | 0x000C) |
Definition at line 375 of file event_machine_error.h.
| #define EM_ESCOPE_DELETE_CTRL_QUEUES (EM_ESCOPE_INTERNAL_MASK | 0x0016) |
Definition at line 713 of file event_machine_error.h.
| #define EM_ESCOPE_DISPATCH (EM_ESCOPE_API_MASK | 0x000D) |
Definition at line 378 of file event_machine_error.h.
| #define EM_ESCOPE_DISPATCH_DURATION (EM_ESCOPE_API_MASK | 0x000E) |
Definition at line 379 of file event_machine_error.h.
| #define EM_ESCOPE_DISPATCH_EVENTS (EM_ESCOPE_API_MASK | 0x000F) |
Definition at line 380 of file event_machine_error.h.
| #define EM_ESCOPE_DISPATCH_NS (EM_ESCOPE_API_MASK | 0x0010) |
Definition at line 381 of file event_machine_error.h.
| #define EM_ESCOPE_DISPATCH_OPT_INIT (EM_ESCOPE_API_MASK | 0x0011) |
Definition at line 382 of file event_machine_error.h.
| #define EM_ESCOPE_DISPATCH_REGISTER_ENTER_CB (EM_ESCOPE_API_MASK | 0x0012) |
Definition at line 383 of file event_machine_error.h.
| #define EM_ESCOPE_DISPATCH_REGISTER_EXIT_CB (EM_ESCOPE_API_MASK | 0x0013) |
Definition at line 384 of file event_machine_error.h.
| #define EM_ESCOPE_DISPATCH_ROUNDS (EM_ESCOPE_API_MASK | 0x0014) |
Definition at line 385 of file event_machine_error.h.
| #define EM_ESCOPE_DISPATCH_UNREGISTER_ENTER_CB (EM_ESCOPE_API_MASK | 0x0015) |
Definition at line 386 of file event_machine_error.h.
| #define EM_ESCOPE_DISPATCH_UNREGISTER_EXIT_CB (EM_ESCOPE_API_MASK | 0x0016) |
Definition at line 387 of file event_machine_error.h.
| #define EM_ESCOPE_EO_ADD_QUEUE (EM_ESCOPE_API_MASK | 0x0017) |
Definition at line 390 of file event_machine_error.h.
| #define EM_ESCOPE_EO_ADD_QUEUE_SYNC (EM_ESCOPE_API_MASK | 0x0018) |
Definition at line 391 of file event_machine_error.h.
| #define EM_ESCOPE_EO_CONTEXT (EM_ESCOPE_API_MASK | 0x0019) |
Definition at line 392 of file event_machine_error.h.
| #define EM_ESCOPE_EO_CREATE (EM_ESCOPE_API_MASK | 0x001A) |
Definition at line 393 of file event_machine_error.h.
| #define EM_ESCOPE_EO_CREATE_MULTIRCV (EM_ESCOPE_API_MASK | 0x001B) |
Definition at line 394 of file event_machine_error.h.
| #define EM_ESCOPE_EO_CREATE_PARAM (EM_ESCOPE_API_MASK | 0x001C) |
Definition at line 395 of file event_machine_error.h.
| #define EM_ESCOPE_EO_CURRENT (EM_ESCOPE_API_MASK | 0x001D) |
Definition at line 396 of file event_machine_error.h.
| #define EM_ESCOPE_EO_DELETE (EM_ESCOPE_API_MASK | 0x001E) |
Definition at line 397 of file event_machine_error.h.
| #define EM_ESCOPE_EO_FIND (EM_ESCOPE_API_MASK | 0x001F) |
Definition at line 398 of file event_machine_error.h.
| #define EM_ESCOPE_EO_FIRST (EM_ESCOPE_API_MASK | 0x0020) |
Definition at line 399 of file event_machine_error.h.
| #define EM_ESCOPE_EO_GET_CONTEXT EM_ESCOPE_EO_CONTEXT |
Definition at line 418 of file event_machine_error.h.
| #define EM_ESCOPE_EO_GET_FIRST EM_ESCOPE_EO_FIRST |
Definition at line 419 of file event_machine_error.h.
| #define EM_ESCOPE_EO_GET_NAME EM_ESCOPE_EO_NAME |
Definition at line 420 of file event_machine_error.h.
| #define EM_ESCOPE_EO_GET_NEXT EM_ESCOPE_EO_NEXT |
Definition at line 421 of file event_machine_error.h.
| #define EM_ESCOPE_EO_GET_STATE EM_ESCOPE_EO_STATE |
Definition at line 422 of file event_machine_error.h.
| #define EM_ESCOPE_EO_LOCAL_FUNC_CALL_REQ (EM_ESCOPE_INTERNAL_MASK | 0x0006) |
Definition at line 691 of file event_machine_error.h.
| #define EM_ESCOPE_EO_MULTIRCV_PARAM_INIT (EM_ESCOPE_API_MASK | 0x0021) |
Definition at line 400 of file event_machine_error.h.
| #define EM_ESCOPE_EO_NAME (EM_ESCOPE_API_MASK | 0x0022) |
Definition at line 401 of file event_machine_error.h.
| #define EM_ESCOPE_EO_NEXT (EM_ESCOPE_API_MASK | 0x0023) |
Definition at line 402 of file event_machine_error.h.
| #define EM_ESCOPE_EO_PARAM_INIT (EM_ESCOPE_API_MASK | 0x0024) |
Definition at line 403 of file event_machine_error.h.
| #define EM_ESCOPE_EO_QUEUE_FIRST (EM_ESCOPE_API_MASK | 0x0025) |
Definition at line 404 of file event_machine_error.h.
| #define EM_ESCOPE_EO_QUEUE_GET_FIRST EM_ESCOPE_EO_QUEUE_FIRST |
Definition at line 423 of file event_machine_error.h.
| #define EM_ESCOPE_EO_QUEUE_GET_NEXT EM_ESCOPE_EO_QUEUE_NEXT |
Definition at line 424 of file event_machine_error.h.
| #define EM_ESCOPE_EO_QUEUE_NEXT (EM_ESCOPE_API_MASK | 0x0026) |
Definition at line 405 of file event_machine_error.h.
| #define EM_ESCOPE_EO_REGISTER_ERROR_HANDLER (EM_ESCOPE_API_MASK | 0x0027) |
Definition at line 406 of file event_machine_error.h.
| #define EM_ESCOPE_EO_REMOVE_QUEUE (EM_ESCOPE_API_MASK | 0x0028) |
Definition at line 407 of file event_machine_error.h.
| #define EM_ESCOPE_EO_REMOVE_QUEUE_ALL (EM_ESCOPE_API_MASK | 0x0029) |
Definition at line 408 of file event_machine_error.h.
| #define EM_ESCOPE_EO_REMOVE_QUEUE_ALL_DONE_CB (EM_ESCOPE_INTERNAL_MASK | 0x0007) |
Definition at line 692 of file event_machine_error.h.
| #define EM_ESCOPE_EO_REMOVE_QUEUE_ALL_SYNC (EM_ESCOPE_API_MASK | 0x002A) |
Definition at line 409 of file event_machine_error.h.
| #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.
| #define EM_ESCOPE_EO_REMOVE_QUEUE_DONE_CB (EM_ESCOPE_INTERNAL_MASK | 0x0009) |
Definition at line 694 of file event_machine_error.h.
| #define EM_ESCOPE_EO_REMOVE_QUEUE_SYNC (EM_ESCOPE_API_MASK | 0x002B) |
Definition at line 410 of file event_machine_error.h.
| #define EM_ESCOPE_EO_REMOVE_QUEUE_SYNC_DONE_CB (EM_ESCOPE_INTERNAL_MASK | 0x000A) |
Definition at line 695 of file event_machine_error.h.
| #define EM_ESCOPE_EO_START (EM_ESCOPE_API_MASK | 0x002C) |
Definition at line 411 of file event_machine_error.h.
| #define EM_ESCOPE_EO_START_DONE_CB (EM_ESCOPE_INTERNAL_MASK | 0x000B) |
Definition at line 696 of file event_machine_error.h.
| #define EM_ESCOPE_EO_START_SYNC (EM_ESCOPE_API_MASK | 0x002D) |
Definition at line 412 of file event_machine_error.h.
| #define EM_ESCOPE_EO_START_SYNC_DONE_CB (EM_ESCOPE_INTERNAL_MASK | 0x000C) |
Definition at line 697 of file event_machine_error.h.
| #define EM_ESCOPE_EO_STATE (EM_ESCOPE_API_MASK | 0x002E) |
Definition at line 413 of file event_machine_error.h.
| #define EM_ESCOPE_EO_STOP (EM_ESCOPE_API_MASK | 0x002F) |
Definition at line 414 of file event_machine_error.h.
| #define EM_ESCOPE_EO_STOP_DONE_CB (EM_ESCOPE_INTERNAL_MASK | 0x000D) |
Definition at line 698 of file event_machine_error.h.
| #define EM_ESCOPE_EO_STOP_SYNC (EM_ESCOPE_API_MASK | 0x0030) |
Definition at line 415 of file event_machine_error.h.
| #define EM_ESCOPE_EO_STOP_SYNC_DONE_CB (EM_ESCOPE_INTERNAL_MASK | 0x000E) |
Definition at line 699 of file event_machine_error.h.
| #define EM_ESCOPE_EO_UNREGISTER_ERROR_HANDLER (EM_ESCOPE_API_MASK | 0x0031) |
Definition at line 416 of file event_machine_error.h.
| #define EM_ESCOPE_ERROR (EM_ESCOPE_API_MASK | 0x0032) |
Definition at line 427 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_CLONE (EM_ESCOPE_API_MASK | 0x0045) |
Definition at line 454 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_CLONE_PART (EM_ESCOPE_API_MASK | 0x0046) |
Definition at line 455 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_GET_POOL EM_ESCOPE_EVENT_POOL |
Definition at line 490 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_GET_POOL_SUBPOOL EM_ESCOPE_EVENT_POOL_SUBPOOL |
Definition at line 491 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_GET_SIZE EM_ESCOPE_EVENT_SIZE |
Definition at line 492 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_GET_TYPE EM_ESCOPE_EVENT_TYPE |
Definition at line 493 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_GET_TYPE_MULTI EM_ESCOPE_EVENT_TYPE_MULTI |
Definition at line 494 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_GROUP_ABORT (EM_ESCOPE_API_MASK | 0x0035) |
Definition at line 432 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_GROUP_APPLY (EM_ESCOPE_API_MASK | 0x0036) |
Definition at line 433 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_GROUP_ASSIGN (EM_ESCOPE_API_MASK | 0x0037) |
Definition at line 434 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_GROUP_CREATE (EM_ESCOPE_API_MASK | 0x0038) |
Definition at line 435 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_GROUP_CURRENT (EM_ESCOPE_API_MASK | 0x0039) |
Definition at line 436 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_GROUP_DELETE (EM_ESCOPE_API_MASK | 0x003A) |
Definition at line 437 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_GROUP_FIRST (EM_ESCOPE_API_MASK | 0x003B) |
Definition at line 438 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_GROUP_GET_FIRST EM_ESCOPE_EVENT_GROUP_FIRST |
Definition at line 447 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_GROUP_GET_NEXT EM_ESCOPE_EVENT_GROUP_NEXT |
Definition at line 448 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_GROUP_GET_NOTIF EM_ESCOPE_EVENT_GROUP_NOTIF |
Definition at line 449 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_GROUP_INCREMENT (EM_ESCOPE_API_MASK | 0x003C) |
Definition at line 439 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_GROUP_IS_READY (EM_ESCOPE_API_MASK | 0x003D) |
Definition at line 440 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_GROUP_NEXT (EM_ESCOPE_API_MASK | 0x003E) |
Definition at line 441 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_GROUP_NOTIF (EM_ESCOPE_API_MASK | 0x003F) |
Definition at line 442 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_GROUP_PROCESSING_END (EM_ESCOPE_API_MASK | 0x0040) |
Definition at line 443 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_GROUP_UPDATE (EM_ESCOPE_INTERNAL_MASK | 0x0003) |
Definition at line 686 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_GROUP_UPDATE_POSTCNT (EM_ESCOPE_INTERNAL_MASK | 0x0005) |
Definition at line 688 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_GROUP_UPDATE_PRECNT (EM_ESCOPE_INTERNAL_MASK | 0x0004) |
Definition at line 687 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_HAS_REF (EM_ESCOPE_API_MASK | 0x0047) |
Definition at line 456 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_INTERNAL_DONE (EM_ESCOPE_INTERNAL_MASK | 0x0017) |
Definition at line 714 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_INTERNAL_LFUNC_CALL (EM_ESCOPE_INTERNAL_MASK | 0x0018) |
Definition at line 715 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_MARK_FREE (EM_ESCOPE_API_MASK | 0x0048) |
Definition at line 457 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_MARK_FREE_MULTI (EM_ESCOPE_API_MASK | 0x0049) |
Definition at line 458 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_MARK_SEND (EM_ESCOPE_API_MASK | 0x004A) |
Definition at line 459 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_POINTER (EM_ESCOPE_API_MASK | 0x004B) |
Definition at line 460 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_POINTER_AND_SIZE (EM_ESCOPE_API_MASK | 0x004C) |
Definition at line 461 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_POOL (EM_ESCOPE_API_MASK | 0x004D) |
Definition at line 462 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_POOL_SUBPOOL (EM_ESCOPE_API_MASK | 0x004E) |
Definition at line 463 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_REF (EM_ESCOPE_API_MASK | 0x004F) |
Definition at line 464 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_SAME_TYPE_MULTI (EM_ESCOPE_API_MASK | 0x0050) |
Definition at line 465 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_SEND_DEVICE (EM_ESCOPE_INTERNAL_MASK | 0x0001) |
Definition at line 682 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_SEND_DEVICE_MULTI (EM_ESCOPE_INTERNAL_MASK | 0x0002) |
Definition at line 683 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_SET_TYPE (EM_ESCOPE_API_MASK | 0x0051) |
Definition at line 466 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_SIZE (EM_ESCOPE_API_MASK | 0x0052) |
Definition at line 467 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_TYPE (EM_ESCOPE_API_MASK | 0x0053) |
Definition at line 468 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_TYPE_MULTI (EM_ESCOPE_API_MASK | 0x0054) |
Definition at line 469 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_UAREA (EM_ESCOPE_API_MASK | 0x0055) |
Definition at line 470 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_UAREA_GET EM_ESCOPE_EVENT_UAREA |
Definition at line 495 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_UAREA_ID (EM_ESCOPE_API_MASK | 0x0056) |
Definition at line 471 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_UAREA_ID_GET EM_ESCOPE_EVENT_UAREA_ID |
Definition at line 496 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_UAREA_ID_SET (EM_ESCOPE_API_MASK | 0x0057) |
Definition at line 472 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_UAREA_INFO (EM_ESCOPE_API_MASK | 0x0058) |
Definition at line 473 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_UNMARK_FREE (EM_ESCOPE_API_MASK | 0x0059) |
Definition at line 474 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_UNMARK_FREE_MULTI (EM_ESCOPE_API_MASK | 0x005A) |
Definition at line 475 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_UNMARK_SEND (EM_ESCOPE_API_MASK | 0x005B) |
Definition at line 476 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_VECTOR_FREE (EM_ESCOPE_API_MASK | 0x005C) |
Definition at line 477 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_VECTOR_INFO (EM_ESCOPE_API_MASK | 0x005D) |
Definition at line 478 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_VECTOR_MAX_SIZE (EM_ESCOPE_API_MASK | 0x005E) |
Definition at line 479 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_VECTOR_SIZE (EM_ESCOPE_API_MASK | 0x005F) |
Definition at line 480 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_VECTOR_SIZE_SET (EM_ESCOPE_API_MASK | 0x0060) |
Definition at line 481 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_VECTOR_TBL (EM_ESCOPE_API_MASK | 0x0061) |
Definition at line 482 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_VECTOR_TYPE (EM_ESCOPE_API_MASK | 0x0062) |
Definition at line 483 of file event_machine_error.h.
| #define EM_ESCOPE_EVENT_VECTOR_TYPE_SET (EM_ESCOPE_API_MASK | 0x0063) |
Definition at line 484 of file event_machine_error.h.
| #define EM_ESCOPE_FREE (EM_ESCOPE_API_MASK | 0x0064) |
Definition at line 485 of file event_machine_error.h.
| #define EM_ESCOPE_FREE_MULTI (EM_ESCOPE_API_MASK | 0x0065) |
Definition at line 486 of file event_machine_error.h.
| #define EM_ESCOPE_HOOKS_REGISTER_ALLOC (EM_ESCOPE_API_MASK | 0x0074) |
Definition at line 513 of file event_machine_error.h.
| #define EM_ESCOPE_HOOKS_REGISTER_FREE (EM_ESCOPE_API_MASK | 0x0075) |
Definition at line 514 of file event_machine_error.h.
| #define EM_ESCOPE_HOOKS_REGISTER_SEND (EM_ESCOPE_API_MASK | 0x0076) |
Definition at line 515 of file event_machine_error.h.
| #define EM_ESCOPE_HOOKS_REGISTER_TO_ACTIVE (EM_ESCOPE_API_MASK | 0x0077) |
Definition at line 516 of file event_machine_error.h.
| #define EM_ESCOPE_HOOKS_REGISTER_TO_IDLE (EM_ESCOPE_API_MASK | 0x0078) |
Definition at line 517 of file event_machine_error.h.
| #define EM_ESCOPE_HOOKS_REGISTER_WHILE_IDLE (EM_ESCOPE_API_MASK | 0x0079) |
Definition at line 518 of file event_machine_error.h.
| #define EM_ESCOPE_HOOKS_UNREGISTER_ALLOC (EM_ESCOPE_API_MASK | 0x007A) |
Definition at line 519 of file event_machine_error.h.
| #define EM_ESCOPE_HOOKS_UNREGISTER_FREE (EM_ESCOPE_API_MASK | 0x007B) |
Definition at line 520 of file event_machine_error.h.
| #define EM_ESCOPE_HOOKS_UNREGISTER_SEND (EM_ESCOPE_API_MASK | 0x007C) |
Definition at line 521 of file event_machine_error.h.
| #define EM_ESCOPE_HOOKS_UNREGISTER_TO_ACTIVE (EM_ESCOPE_API_MASK | 0x007D) |
Definition at line 522 of file event_machine_error.h.
| #define EM_ESCOPE_HOOKS_UNREGISTER_TO_IDLE (EM_ESCOPE_API_MASK | 0x007E) |
Definition at line 523 of file event_machine_error.h.
| #define EM_ESCOPE_HOOKS_UNREGISTER_WHILE_IDLE (EM_ESCOPE_API_MASK | 0x007F) |
Definition at line 524 of file event_machine_error.h.
| #define EM_ESCOPE_INIT (EM_ESCOPE_API_MASK | 0x0084) |
Definition at line 531 of file event_machine_error.h.
| #define EM_ESCOPE_INIT_CORE (EM_ESCOPE_API_MASK | 0x0085) |
Definition at line 532 of file event_machine_error.h.
| #define EM_ESCOPE_INIT_LOCAL (EM_ESCOPE_API_MASK | 0x0086) |
Definition at line 533 of file event_machine_error.h.
| #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.
| #define EM_ESCOPE_INTERNAL_DONE_W_NOTIF_REQ (EM_ESCOPE_INTERNAL_MASK | 0x0019) |
Definition at line 716 of file event_machine_error.h.
| #define EM_ESCOPE_INTERNAL_EVENT_RECV_FUNC (EM_ESCOPE_INTERNAL_MASK | 0x001A) |
Definition at line 717 of file event_machine_error.h.
| #define EM_ESCOPE_INTERNAL_FIRST (EM_ESCOPE_INTERNAL_MASK | 0x0000) |
Definition at line 679 of file event_machine_error.h.
| #define EM_ESCOPE_INTERNAL_LAST (EM_ESCOPE_INTERNAL_MASK | 0x001E) |
Definition at line 727 of file event_machine_error.h.
| #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.
| #define EM_ESCOPE_INTERNAL_NOTIF (EM_ESCOPE_INTERNAL_MASK | 0x001B) |
Definition at line 718 of file event_machine_error.h.
| #define EM_ESCOPE_INTERNAL_TYPE (0xFCu) |
EM Internal (non-public API) functions error scope
Definition at line 314 of file event_machine_error.h.
| #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.
| #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.
| #define EM_ESCOPE_ORDERED_PROCESSING_END (EM_ESCOPE_API_MASK | 0x00C4) |
Definition at line 624 of file event_machine_error.h.
| #define EM_ESCOPE_PACKET_CONCAT (EM_ESCOPE_API_MASK | 0x0073) |
Definition at line 510 of file event_machine_error.h.
| #define EM_ESCOPE_PACKET_HEADROOM (EM_ESCOPE_API_MASK | 0x0068) |
Definition at line 499 of file event_machine_error.h.
| #define EM_ESCOPE_PACKET_POINTER (EM_ESCOPE_API_MASK | 0x0069) |
Definition at line 500 of file event_machine_error.h.
| #define EM_ESCOPE_PACKET_POINTER_AND_SIZE (EM_ESCOPE_API_MASK | 0x006A) |
Definition at line 501 of file event_machine_error.h.
| #define EM_ESCOPE_PACKET_PULL_HEAD (EM_ESCOPE_API_MASK | 0x006B) |
Definition at line 502 of file event_machine_error.h.
| #define EM_ESCOPE_PACKET_PULL_TAIL (EM_ESCOPE_API_MASK | 0x006C) |
Definition at line 503 of file event_machine_error.h.
| #define EM_ESCOPE_PACKET_PUSH_HEAD (EM_ESCOPE_API_MASK | 0x006D) |
Definition at line 504 of file event_machine_error.h.
| #define EM_ESCOPE_PACKET_PUSH_TAIL (EM_ESCOPE_API_MASK | 0x006E) |
Definition at line 505 of file event_machine_error.h.
| #define EM_ESCOPE_PACKET_RESET (EM_ESCOPE_API_MASK | 0x006F) |
Definition at line 506 of file event_machine_error.h.
| #define EM_ESCOPE_PACKET_RESIZE (EM_ESCOPE_API_MASK | 0x0070) |
Definition at line 507 of file event_machine_error.h.
| #define EM_ESCOPE_PACKET_SIZE (EM_ESCOPE_API_MASK | 0x0071) |
Definition at line 508 of file event_machine_error.h.
| #define EM_ESCOPE_PACKET_TAILROOM (EM_ESCOPE_API_MASK | 0x0072) |
Definition at line 509 of file event_machine_error.h.
| #define EM_ESCOPE_POOL_CFG_INIT (EM_ESCOPE_API_MASK | 0x008C) |
Definition at line 541 of file event_machine_error.h.
| #define EM_ESCOPE_POOL_CREATE (EM_ESCOPE_API_MASK | 0x008D) |
Definition at line 542 of file event_machine_error.h.
| #define EM_ESCOPE_POOL_DELETE (EM_ESCOPE_API_MASK | 0x008E) |
Definition at line 543 of file event_machine_error.h.
| #define EM_ESCOPE_POOL_FIND (EM_ESCOPE_API_MASK | 0x008F) |
Definition at line 544 of file event_machine_error.h.
| #define EM_ESCOPE_POOL_FIRST (EM_ESCOPE_API_MASK | 0x0090) |
Definition at line 545 of file event_machine_error.h.
| #define EM_ESCOPE_POOL_GET_FIRST EM_ESCOPE_POOL_FIRST |
Definition at line 558 of file event_machine_error.h.
| #define EM_ESCOPE_POOL_GET_NAME EM_ESCOPE_POOL_NAME |
Definition at line 559 of file event_machine_error.h.
| #define EM_ESCOPE_POOL_GET_NEXT EM_ESCOPE_POOL_NEXT |
Definition at line 560 of file event_machine_error.h.
| #define EM_ESCOPE_POOL_INFO (EM_ESCOPE_API_MASK | 0x0091) |
Definition at line 546 of file event_machine_error.h.
| #define EM_ESCOPE_POOL_NAME (EM_ESCOPE_API_MASK | 0x0092) |
Definition at line 547 of file event_machine_error.h.
| #define EM_ESCOPE_POOL_NEXT (EM_ESCOPE_API_MASK | 0x0093) |
Definition at line 548 of file event_machine_error.h.
| #define EM_ESCOPE_POOL_NUM_SUBPOOLS (EM_ESCOPE_API_MASK | 0x0094) |
Definition at line 549 of file event_machine_error.h.
| #define EM_ESCOPE_POOL_STATS (EM_ESCOPE_API_MASK | 0x0095) |
Definition at line 550 of file event_machine_error.h.
| #define EM_ESCOPE_POOL_STATS_OPT (EM_ESCOPE_API_MASK | 0x009B) |
Definition at line 556 of file event_machine_error.h.
| #define EM_ESCOPE_POOL_STATS_RESET (EM_ESCOPE_API_MASK | 0x0096) |
Definition at line 551 of file event_machine_error.h.
| #define EM_ESCOPE_POOL_STATS_SELECTED (EM_ESCOPE_API_MASK | 0x0097) |
Definition at line 552 of file event_machine_error.h.
| #define EM_ESCOPE_POOL_SUBPOOL_STATS (EM_ESCOPE_API_MASK | 0x0098) |
Definition at line 553 of file event_machine_error.h.
| #define EM_ESCOPE_POOL_SUBPOOL_STATS_RESET (EM_ESCOPE_API_MASK | 0x0099) |
Definition at line 554 of file event_machine_error.h.
| #define EM_ESCOPE_POOL_SUBPOOL_STATS_SELECTED (EM_ESCOPE_API_MASK | 0x009A) |
Definition at line 555 of file event_machine_error.h.
| #define EM_ESCOPE_PRESCHEDULE (EM_ESCOPE_API_MASK | 0x00C5) |
Definition at line 625 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_AGGR (EM_ESCOPE_API_MASK | 0x00AA) |
Definition at line 585 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_AGGR_CONF_INIT (EM_ESCOPE_API_MASK | 0x00A9) |
Definition at line 584 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_AGGR_INFO (EM_ESCOPE_API_MASK | 0x00AB) |
Definition at line 586 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_AGGR_LIST (EM_ESCOPE_API_MASK | 0x00AC) |
Definition at line 587 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_AGGR_NUM (EM_ESCOPE_API_MASK | 0x00AD) |
Definition at line 588 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_AGROUP (EM_ESCOPE_API_MASK | 0x00AE) |
Definition at line 589 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_CONTEXT (EM_ESCOPE_API_MASK | 0x00AF) |
Definition at line 590 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_CREATE (EM_ESCOPE_API_MASK | 0x00B0) |
Definition at line 591 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_CREATE_AG (EM_ESCOPE_API_MASK | 0x0009) |
Definition at line 364 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_CREATE_PARAM (EM_ESCOPE_API_MASK | 0x00B2) |
Definition at line 593 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_CREATE_STATIC (EM_ESCOPE_API_MASK | 0x00B1) |
Definition at line 592 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_CREATE_STATIC_AG (EM_ESCOPE_API_MASK | 0x000A) |
Definition at line 365 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_CURRENT (EM_ESCOPE_API_MASK | 0x00B3) |
Definition at line 594 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_DELETE (EM_ESCOPE_API_MASK | 0x00B4) |
Definition at line 595 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_DEQUEUE (EM_ESCOPE_API_MASK | 0x00B5) |
Definition at line 596 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_DEQUEUE_MULTI (EM_ESCOPE_API_MASK | 0x00B6) |
Definition at line 597 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_DISABLE (EM_ESCOPE_INTERNAL_MASK | 0x000F) |
Definition at line 702 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_DISABLE_ALL (EM_ESCOPE_INTERNAL_MASK | 0x0010) |
Definition at line 703 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_ENABLE (EM_ESCOPE_INTERNAL_MASK | 0x0011) |
Definition at line 704 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_ENABLE_ALL (EM_ESCOPE_INTERNAL_MASK | 0x0012) |
Definition at line 705 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_FIND (EM_ESCOPE_API_MASK | 0x00B7) |
Definition at line 598 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_FIRST (EM_ESCOPE_API_MASK | 0x00B8) |
Definition at line 599 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_GET_CONTEXT EM_ESCOPE_QUEUE_CONTEXT |
Definition at line 612 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_GET_FIRST EM_ESCOPE_QUEUE_FIRST |
Definition at line 613 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_GET_GROUP EM_ESCOPE_QUEUE_QGROUP |
Definition at line 614 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_GET_INDEX EM_ESCOPE_QUEUE_INDEX |
Definition at line 615 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_GET_NAME EM_ESCOPE_QUEUE_NAME |
Definition at line 616 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_GET_NEXT EM_ESCOPE_QUEUE_NEXT |
Definition at line 617 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_GET_NUM_PRIO EM_ESCOPE_QUEUE_NUM_PRIO |
Definition at line 618 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_GET_PRIORITY EM_ESCOPE_QUEUE_PRIORITY |
Definition at line 619 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_GET_TYPE EM_ESCOPE_QUEUE_TYPE |
Definition at line 620 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_GROUP_ADD_CORE (EM_ESCOPE_INTERNAL_MASK | 0x0014) |
Definition at line 709 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_GROUP_CREATE (EM_ESCOPE_API_MASK | 0x009C) |
Definition at line 563 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_GROUP_CREATE_SYNC (EM_ESCOPE_API_MASK | 0x009D) |
Definition at line 564 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_GROUP_DELETE (EM_ESCOPE_API_MASK | 0x009E) |
Definition at line 565 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_GROUP_DELETE_SYNC (EM_ESCOPE_API_MASK | 0x009F) |
Definition at line 566 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_GROUP_FIND (EM_ESCOPE_API_MASK | 0x00A0) |
Definition at line 567 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_GROUP_FIRST (EM_ESCOPE_API_MASK | 0x00A1) |
Definition at line 568 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_GROUP_GET_FIRST EM_ESCOPE_QUEUE_GROUP_FIRST |
Definition at line 577 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_GROUP_GET_NAME EM_ESCOPE_QUEUE_GROUP_NAME |
Definition at line 578 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_GROUP_GET_NEXT EM_ESCOPE_QUEUE_GROUP_NEXT |
Definition at line 579 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_GROUP_MASK (EM_ESCOPE_API_MASK | 0x00A2) |
Definition at line 569 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_GROUP_MODIFY (EM_ESCOPE_API_MASK | 0x00A3) |
Definition at line 570 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_GROUP_MODIFY_SYNC (EM_ESCOPE_API_MASK | 0x00A4) |
Definition at line 571 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_GROUP_NAME (EM_ESCOPE_API_MASK | 0x00A5) |
Definition at line 572 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_GROUP_NEXT (EM_ESCOPE_API_MASK | 0x00A6) |
Definition at line 573 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_GROUP_QUEUE_FIRST (EM_ESCOPE_API_MASK | 0x00A7) |
Definition at line 574 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_GROUP_QUEUE_GET_FIRST EM_ESCOPE_QUEUE_GROUP_QUEUE_FIRST |
Definition at line 580 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_GROUP_QUEUE_GET_NEXT EM_ESCOPE_QUEUE_GROUP_QUEUE_NEXT |
Definition at line 581 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_GROUP_QUEUE_NEXT (EM_ESCOPE_API_MASK | 0x00A8) |
Definition at line 575 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_GROUP_REM_CORE (EM_ESCOPE_INTERNAL_MASK | 0x0015) |
Definition at line 710 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_INDEX (EM_ESCOPE_API_MASK | 0x00B9) |
Definition at line 600 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_NAME (EM_ESCOPE_API_MASK | 0x00BA) |
Definition at line 601 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_NEXT (EM_ESCOPE_API_MASK | 0x00BB) |
Definition at line 602 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_NUM_PRIO (EM_ESCOPE_API_MASK | 0x00BC) |
Definition at line 603 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_PARAM_INIT (EM_ESCOPE_API_MASK | 0x00BD) |
Definition at line 604 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_PRIORITY (EM_ESCOPE_API_MASK | 0x00BE) |
Definition at line 605 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_QGROUP (EM_ESCOPE_API_MASK | 0x00BF) |
Definition at line 606 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_SET_CONTEXT (EM_ESCOPE_API_MASK | 0x00C0) |
Definition at line 607 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_STATE_CHANGE (EM_ESCOPE_INTERNAL_MASK | 0x0013) |
Definition at line 706 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_STATIC_HANDLE (EM_ESCOPE_API_MASK | 0x00C2) |
Definition at line 609 of file event_machine_error.h.
| #define EM_ESCOPE_QUEUE_TYPE (EM_ESCOPE_API_MASK | 0x00C1) |
Definition at line 608 of file event_machine_error.h.
| #define EM_ESCOPE_REGISTER_ERROR_HANDLER (EM_ESCOPE_API_MASK | 0x0033) |
Definition at line 428 of file event_machine_error.h.
| #define EM_ESCOPE_SCHED_CONTEXT_TYPE_CURRENT (EM_ESCOPE_API_MASK | 0x00C6) |
Definition at line 626 of file event_machine_error.h.
| #define EM_ESCOPE_SEND (EM_ESCOPE_API_MASK | 0x0066) |
Definition at line 487 of file event_machine_error.h.
| #define EM_ESCOPE_SEND_CTRL_QUEUE (EM_ESCOPE_INTERNAL_MASK | 0x001C) |
Definition at line 719 of file event_machine_error.h.
| #define EM_ESCOPE_SEND_GROUP (EM_ESCOPE_API_MASK | 0x0041) |
Definition at line 444 of file event_machine_error.h.
| #define EM_ESCOPE_SEND_GROUP_MULTI (EM_ESCOPE_API_MASK | 0x0042) |
Definition at line 445 of file event_machine_error.h.
| #define EM_ESCOPE_SEND_MULTI (EM_ESCOPE_API_MASK | 0x0067) |
Definition at line 488 of file event_machine_error.h.
| #define EM_ESCOPE_TERM (EM_ESCOPE_API_MASK | 0x0087) |
Definition at line 534 of file event_machine_error.h.
| #define EM_ESCOPE_TERM_CORE (EM_ESCOPE_API_MASK | 0x0088) |
Definition at line 535 of file event_machine_error.h.
| #define EM_ESCOPE_TERM_LOCAL (EM_ESCOPE_API_MASK | 0x0089) |
Definition at line 536 of file event_machine_error.h.
| #define EM_ESCOPE_TERM_LOCAL_INIT (EM_ESCOPE_API_MASK | 0x008A) |
Definition at line 537 of file event_machine_error.h.
| #define EM_ESCOPE_TIMER_ALL (EM_ESCOPE_API_MASK | 0x00C7) |
Definition at line 629 of file event_machine_error.h.
| #define EM_ESCOPE_TIMER_ATTR (EM_ESCOPE_API_MASK | 0x00C8) |
Definition at line 630 of file event_machine_error.h.
| #define EM_ESCOPE_TIMER_ATTR_INIT (EM_ESCOPE_API_MASK | 0x00C9) |
Definition at line 631 of file event_machine_error.h.
| #define EM_ESCOPE_TIMER_CAPABILITY (EM_ESCOPE_API_MASK | 0x00CA) |
Definition at line 632 of file event_machine_error.h.
| #define EM_ESCOPE_TIMER_CREATE (EM_ESCOPE_API_MASK | 0x00CB) |
Definition at line 633 of file event_machine_error.h.
| #define EM_ESCOPE_TIMER_CUR_TICK (EM_ESCOPE_API_MASK | 0x00CC) |
Definition at line 634 of file event_machine_error.h.
| #define EM_ESCOPE_TIMER_DELETE (EM_ESCOPE_API_MASK | 0x00CD) |
Definition at line 635 of file event_machine_error.h.
| #define EM_ESCOPE_TIMER_FREQ (EM_ESCOPE_API_MASK | 0x00CE) |
Definition at line 636 of file event_machine_error.h.
| #define EM_ESCOPE_TIMER_GET_ALL EM_ESCOPE_TIMER_ALL |
Definition at line 659 of file event_machine_error.h.
| #define EM_ESCOPE_TIMER_GET_ATTR EM_ESCOPE_TIMER_ATTR |
Definition at line 660 of file event_machine_error.h.
| #define EM_ESCOPE_TIMER_GET_FREQ EM_ESCOPE_TIMER_FREQ |
Definition at line 661 of file event_machine_error.h.
| #define EM_ESCOPE_TIMER_NS_TO_TICK (EM_ESCOPE_API_MASK | 0x00CF) |
Definition at line 637 of file event_machine_error.h.
| #define EM_ESCOPE_TIMER_RES_CAPABILITY (EM_ESCOPE_API_MASK | 0x00D0) |
Definition at line 638 of file event_machine_error.h.
| #define EM_ESCOPE_TIMER_RING_CREATE (EM_ESCOPE_API_MASK | 0x00D1) |
Definition at line 639 of file event_machine_error.h.
| #define EM_ESCOPE_TIMER_RING_FREQ_CREATE (EM_ESCOPE_API_MASK | 0x00D2) |
Definition at line 640 of file event_machine_error.h.
| #define EM_ESCOPE_TIMER_TICK_TO_NS (EM_ESCOPE_API_MASK | 0x00D3) |
Definition at line 641 of file event_machine_error.h.
| #define EM_ESCOPE_TMO_ACK (EM_ESCOPE_API_MASK | 0x00D4) |
Definition at line 642 of file event_machine_error.h.
| #define EM_ESCOPE_TMO_CANCEL (EM_ESCOPE_API_MASK | 0x00D5) |
Definition at line 643 of file event_machine_error.h.
| #define EM_ESCOPE_TMO_CREATE (EM_ESCOPE_API_MASK | 0x00D6) |
Definition at line 644 of file event_machine_error.h.
| #define EM_ESCOPE_TMO_CREATE_ARG (EM_ESCOPE_API_MASK | 0x00D7) |
Definition at line 645 of file event_machine_error.h.
| #define EM_ESCOPE_TMO_DELETE (EM_ESCOPE_API_MASK | 0x00D8) |
Definition at line 646 of file event_machine_error.h.
| #define EM_ESCOPE_TMO_GET_STATE EM_ESCOPE_TMO_STATE |
Definition at line 662 of file event_machine_error.h.
| #define EM_ESCOPE_TMO_GET_STATS EM_ESCOPE_TMO_STATS |
Definition at line 663 of file event_machine_error.h.
| #define EM_ESCOPE_TMO_GET_TIMER EM_ESCOPE_TMO_TIMER |
Definition at line 664 of file event_machine_error.h.
| #define EM_ESCOPE_TMO_GET_TYPE EM_ESCOPE_TMO_TYPE |
Definition at line 665 of file event_machine_error.h.
| #define EM_ESCOPE_TMO_GET_USERPTR EM_ESCOPE_TMO_USERPTR |
Definition at line 666 of file event_machine_error.h.
| #define EM_ESCOPE_TMO_RING_ACK (EM_ESCOPE_API_MASK | 0x00E2) |
Definition at line 656 of file event_machine_error.h.
| #define EM_ESCOPE_TMO_SET_ABS (EM_ESCOPE_API_MASK | 0x00D9) |
Definition at line 647 of file event_machine_error.h.
| #define EM_ESCOPE_TMO_SET_PERIODIC (EM_ESCOPE_API_MASK | 0x00DA) |
Definition at line 648 of file event_machine_error.h.
| #define EM_ESCOPE_TMO_SET_PERIODIC_RING (EM_ESCOPE_API_MASK | 0x00DB) |
Definition at line 649 of file event_machine_error.h.
| #define EM_ESCOPE_TMO_SET_PERIODIC_RING_FREQ (EM_ESCOPE_API_MASK | 0x00E3) |
Definition at line 657 of file event_machine_error.h.
| #define EM_ESCOPE_TMO_SET_REL (EM_ESCOPE_API_MASK | 0x00DC) |
Definition at line 650 of file event_machine_error.h.
| #define EM_ESCOPE_TMO_STATE (EM_ESCOPE_API_MASK | 0x00DD) |
Definition at line 651 of file event_machine_error.h.
| #define EM_ESCOPE_TMO_STATS (EM_ESCOPE_API_MASK | 0x00DE) |
Definition at line 652 of file event_machine_error.h.
| #define EM_ESCOPE_TMO_TIMER (EM_ESCOPE_API_MASK | 0x00DF) |
Definition at line 653 of file event_machine_error.h.
| #define EM_ESCOPE_TMO_TYPE (EM_ESCOPE_API_MASK | 0x00E0) |
Definition at line 654 of file event_machine_error.h.
| #define EM_ESCOPE_TMO_USERPTR (EM_ESCOPE_API_MASK | 0x00E1) |
Definition at line 655 of file event_machine_error.h.
| #define EM_ESCOPE_UNREGISTER_ERROR_HANDLER (EM_ESCOPE_API_MASK | 0x0034) |
Definition at line 429 of file event_machine_error.h.
| #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.
| #define EM_OK 0 |
Operation successful
Definition at line 104 of file event_machine_error.h.
| #define PRI_ESCOPE PRIu32 |
Definition at line 185 of file event_machine_error.h.
| #define PRI_STAT PRIu32 |
Definition at line 97 of file event_machine_error.h.
| #define PRIxESCOPE PRIx32 |
Definition at line 186 of file event_machine_error.h.
| #define PRIxSTAT PRIx32 |
Definition at line 98 of file event_machine_error.h.
| 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.
| eo | Execution object id |
| error | The error code |
| escope | Error scope. Identifies the scope for interpreting the error code and variable arguments. |
| args | Variable number and type of arguments |
Definition at line 217 of file event_machine_error.h.
Error scope.
Identifies the error scope for interpreting error codes and variable arguments.
Definition at line 184 of file event_machine_error.h.
| typedef int(* em_log_func_t) (em_log_level_t level, const char *fmt,...) __attribute__((format(printf |
EM log function, variable number of args
Definition at line 284 of file event_machine_error.h.
| typedef enum em_status_e em_status_e |
Error/Status codes used by 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.
Definition at line 96 of file event_machine_error.h.
| 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
Definition at line 292 of file event_machine_error.h.
| enum em_log_level_t |
EM log level
Definition at line 273 of file event_machine_error.h.
| enum em_status_e |
Error/Status codes used by em_status_t
Definition at line 117 of file event_machine_error.h.
| 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.
| error | Error code |
| escope | Error scope. Identifies the scope for interpreting the error code and the variable arguments. |
| ... | Variable number and type of arguments |
Definition at line 79 of file event_machine_error.c.
| 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.
| handler | Error handler. |
Definition at line 47 of file event_machine_error.c.
| em_status_t em_unregister_error_handler | ( | void | ) |
Unregister a global error handler.
Unregisters any previously registered global error handler and restores the EM default global error handler into use.
Definition at line 63 of file event_machine_error.c.