38 #ifndef OPAL_MEMORY_MEMORY_H
39 #define OPAL_MEMORY_MEMORY_H
41 #include "opal_config.h"
42 #include "memory_internal.h"
60 OPAL_DECLSPEC
int opal_mem_hooks_init(
void);
78 OPAL_DECLSPEC
int opal_mem_hooks_finalize(
void);
105 OPAL_DECLSPEC
int opal_mem_hooks_support_level(
void);
124 typedef void (opal_mem_hooks_callback_fn_t)(
void *buf,
size_t length,
125 void *cbdata,
bool from_alloc);
144 OPAL_DECLSPEC
int opal_mem_hooks_register_release(opal_mem_hooks_callback_fn_t *func,
157 OPAL_DECLSPEC
int opal_mem_hooks_unregister_release(opal_mem_hooks_callback_fn_t *func);