22 #ifndef MCA_ALLOCATOR_H
23 #define MCA_ALLOCATOR_H
25 #include "ompi_config.h"
37 typedef void* (*mca_allocator_base_module_alloc_fn_t)(
46 typedef void* (*mca_allocator_base_module_realloc_fn_t)(
103 typedef void* (*mca_allocator_base_component_segment_alloc_fn_t)(
122 (*mca_allocator_base_component_init_fn_t)(
123 bool enable_mpi_threads,
150 #define MCA_ALLOCATOR_BASE_VERSION_2_0_0 \
151 MCA_BASE_VERSION_2_0_0, \
Common type for all MCA components.
Definition: mca.h:250
mca_allocator_base_module_alloc_fn_t alc_alloc
Allocate memory.
Definition: allocator.h:79
OMPI_DECLSPEC int mca_allocator_base_output
The output integer used for the mca base.
Definition: allocator_base_open.c:43
int(* mca_allocator_base_module_finalize_fn_t)(struct mca_allocator_base_module_t *allocator)
cleanup (free) any resources held by allocator
Definition: allocator.h:71
mca_allocator_base_module_free_fn_t alc_free
Free memory.
Definition: allocator.h:83
mca_base_component_t allocator_version
The version of the component.
Definition: allocator.h:134
void(* mca_allocator_base_module_free_fn_t)(struct mca_allocator_base_module_t *, void *)
Free function typedef.
Definition: allocator.h:54
struct mca_allocator_base_module_t *(* mca_allocator_base_component_init_fn_t)(bool enable_mpi_threads, mca_allocator_base_component_segment_alloc_fn_t segment_alloc, mca_allocator_base_component_segment_free_fn_t segment_free, struct mca_mpool_base_module_t *mpool)
The function used to initialize the component.
Definition: allocator.h:122
void(* mca_allocator_base_component_segment_free_fn_t)(struct mca_mpool_base_module_t *module, void *segment)
A function to free memory from the control of the allocator framework back to the system...
Definition: allocator.h:113
Top-level interface for all MCA components.
void *(* mca_allocator_base_module_realloc_fn_t)(struct mca_allocator_base_module_t *, void *, size_t, mca_mpool_base_registration_t **registration)
The realloc function typedef.
Definition: allocator.h:46
void *(* mca_allocator_base_component_segment_alloc_fn_t)(struct mca_mpool_base_module_t *module, size_t *size, mca_mpool_base_registration_t **registration)
A function to get more memory from the system.
Definition: allocator.h:103
mca_allocator_base_component_init_fn_t allocator_init
The component initialization function.
Definition: allocator.h:138
int(* mca_allocator_base_module_compact_fn_t)(struct mca_allocator_base_module_t *allocator)
compact/return memory to higher level allocator
Definition: allocator.h:62
The data structure provided by each component to the framework which describes the component...
Definition: allocator.h:133
Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana University Research and Techno...
Meta data for MCA v2.0.0 components.
Definition: mca.h:309
mca_allocator_base_module_finalize_fn_t alc_finalize
Finalize and free everything.
Definition: allocator.h:87
mca_allocator_base_module_realloc_fn_t alc_realloc
Reallocate memory.
Definition: allocator.h:81
mca_allocator_base_module_compact_fn_t alc_compact
Return memory.
Definition: allocator.h:85
mca_base_component_data_t allocator_data
The component metadata.
Definition: allocator.h:136
void *(* mca_allocator_base_module_alloc_fn_t)(struct mca_allocator_base_module_t *, size_t size, size_t align, mca_mpool_base_registration_t **registration)
The allocate function typedef for the function to be provided by the component.
Definition: allocator.h:37
The data structure for each component.
Definition: allocator.h:78
mpool module descriptor.
Definition: mpool.h:174