66 call_api_hooks_alloc(
const em_event_t events[],
const int num_act,
74 alloc_hook_fn = alloc_hook_tbl->tbl[i].alloc;
75 if (alloc_hook_fn == NULL)
77 alloc_hook_fn(events, num_act, num_req, size, type, pool);
82 call_api_hooks_free(
const em_event_t events[],
const int num)
88 free_hook_fn = free_hook_tbl->tbl[i].free;
89 if (free_hook_fn == NULL)
91 free_hook_fn(events, num);
96 call_api_hooks_send(
const em_event_t events[],
const int num,
97 em_queue_t queue, em_event_group_t event_group)
103 send_hook_fn = send_hook_tbl->tbl[i].send;
104 if (send_hook_fn == NULL)
106 send_hook_fn(events, num, queue, event_group);
110 static inline void call_idle_hooks_to_idle(uint64_t to_idle_delay_ns)
116 to_idle_hook_fn = to_idle_hook_tbl->tbl[i].to_idle;
117 if (to_idle_hook_fn == NULL)
119 to_idle_hook_fn(to_idle_delay_ns);
123 static inline void call_idle_hooks_to_active(
void)
129 to_active_hook_fn = to_active_hook_tbl->tbl[i].to_active;
130 if (to_active_hook_fn == NULL)
136 static inline void call_idle_hooks_while_idle(
void)
142 while_idle_hook_fn = while_idle_hook_tbl->tbl[i].while_idle;
143 if (while_idle_hook_fn == NULL)
145 while_idle_hook_fn();