23 #ifndef ALLOCATOR_BASIC_H
24 #define ALLOCATOR_BASIC_H
26 #include "ompi_config.h"
30 #include "ompi/class/ompi_free_list.h"
40 unsigned char* seg_addr;
67 int mca_allocator_basic_component_open(
void);
68 int mca_allocator_basic_component_close(
void);
74 bool enable_mpi_threads,
void * mca_allocator_basic_alloc(mca_allocator_base_module_t *mem, size_t size, size_t align, mca_mpool_base_registration_t **registration)
Accepts a request for memory in a specific region defined by the mca_allocator_basic_options_t struct...
Definition: allocator_basic.c:160
Definition: allocator_basic.h:50
void * mca_allocator_basic_realloc(mca_allocator_base_module_t *mem, void *ptr, size_t size, mca_mpool_base_registration_t **registration)
Attempts to resize the passed region of memory into a larger or a smaller region. ...
Definition: allocator_basic.c:243
Definition: mutex_unix.h:53
mca_allocator_base_module_t * mca_allocator_basic_component_init(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 *module)
The function used to initialize the component.
Definition: allocator_basic.c:74
int mca_allocator_basic_compact(mca_allocator_base_module_t *mem)
Frees all the memory from all the basics back to the system.
Definition: allocator_basic.c:355
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
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
Definition: ompi_free_list.h:39
The data structure provided by each component to the framework which describes the component...
Definition: allocator.h:133
Definition: ompi_free_list.h:62
int mca_allocator_basic_finalize(mca_allocator_base_module_t *mem)
Cleanup all resources held by this allocator.
Definition: allocator_basic.c:370
void mca_allocator_basic_free(mca_allocator_base_module_t *mem, void *ptr)
Frees the passed region of memory.
Definition: allocator_basic.c:272
Definition: opal_list.h:147
Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana University Research and Techno...
Mutual exclusion functions.
The data structure for each component.
Definition: allocator.h:78
mpool module descriptor.
Definition: mpool.h:174
Definition: allocator_basic.h:38