EM-ODP 4.4.0
Event Machine on ODP
Loading...
Searching...
No Matches
em_hook_types.h File Reference
#include <odp_api.h>
#include <event_machine.h>
#include <event_machine/platform/env/environment.h>
Include dependency graph for em_hook_types.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

union  hook_fn_t
 
struct  hook_tbl_t
 
struct  hook_storage_t
 

Macros

#define API_HOOKS_MAX_TBL_SIZE   255
 
#define ALLOC_HOOK   1
 
#define FREE_HOOK   2
 
#define SEND_HOOK   3
 
#define DISPATCH_CALLBACK_ENTER   4
 
#define DISPATCH_CALLBACK_EXIT   5
 
#define TO_IDLE_HOOK   6
 
#define TO_ACTIVE_HOOK   7
 
#define WHILE_IDLE_HOOK   8
 

Typedefs

typedef void(* void_hook_t) (void)
 

Functions

 COMPILE_TIME_ASSERT (sizeof(hook_tbl_t)==ENV_CACHE_LINE_SIZE, HOOK_ALIGNMENT_ERROR)
 
 COMPILE_TIME_ASSERT (sizeof(hook_storage_t) % ENV_CACHE_LINE_SIZE==0, HOOK_STORAGE_ALIGNMENT_ERROR)
 
 COMPILE_TIME_ASSERT (sizeof(hook_storage_t)/ENV_CACHE_LINE_SIZE==API_HOOKS_MAX_TBL_SIZE+1, HOOK_STORAGE_SIZE_ERROR)
 

Detailed Description

EM internal API hook types & definitions

Definition in file em_hook_types.h.

Macro Definition Documentation

◆ ALLOC_HOOK

#define ALLOC_HOOK   1

Definition at line 53 of file em_hook_types.h.

◆ API_HOOKS_MAX_TBL_SIZE

#define API_HOOKS_MAX_TBL_SIZE   255

Definition at line 50 of file em_hook_types.h.

◆ DISPATCH_CALLBACK_ENTER

#define DISPATCH_CALLBACK_ENTER   4

Definition at line 57 of file em_hook_types.h.

◆ DISPATCH_CALLBACK_EXIT

#define DISPATCH_CALLBACK_EXIT   5

Definition at line 58 of file em_hook_types.h.

◆ FREE_HOOK

#define FREE_HOOK   2

Definition at line 54 of file em_hook_types.h.

◆ SEND_HOOK

#define SEND_HOOK   3

Definition at line 55 of file em_hook_types.h.

◆ TO_ACTIVE_HOOK

#define TO_ACTIVE_HOOK   7

Definition at line 61 of file em_hook_types.h.

◆ TO_IDLE_HOOK

#define TO_IDLE_HOOK   6

Definition at line 60 of file em_hook_types.h.

◆ WHILE_IDLE_HOOK

#define WHILE_IDLE_HOOK   8

Definition at line 62 of file em_hook_types.h.

Typedef Documentation

◆ void_hook_t

typedef void(* void_hook_t) (void)

Definition at line 64 of file em_hook_types.h.