OpenMPI  0.1.1
mpool_rdma.h File Reference
#include "ompi_config.h"
#include "opal/class/opal_list.h"
#include "ompi/class/ompi_free_list.h"
#include "opal/mca/event/event.h"
#include "ompi/mca/mpool/mpool.h"

Go to the source code of this file.

Data Structures

struct  mca_mpool_rdma_component_t
 
struct  mca_mpool_base_resources_t
 
struct  mca_mpool_rdma_module_t
 

Typedefs

typedef struct
mca_mpool_rdma_component_t 
mca_mpool_rdma_component_t
 
typedef struct
mca_mpool_base_resources_t 
mca_mpool_base_resources_t
 
typedef struct
mca_mpool_rdma_module_t 
mca_mpool_rdma_module_t
 

Functions

void mca_mpool_rdma_module_init (mca_mpool_rdma_module_t *mpool)
 
void * mca_mpool_rdma_base (mca_mpool_base_module_t *mpool)
 
void * mca_mpool_rdma_alloc (mca_mpool_base_module_t *mpool, size_t size, size_t align, uint32_t flags, mca_mpool_base_registration_t **registration)
 Allocate block of registered memory. More...
 
void * mca_mpool_rdma_realloc (mca_mpool_base_module_t *mpool, void *addr, size_t size, mca_mpool_base_registration_t **registration)
 realloc block of registered memory More...
 
int mca_mpool_rdma_register (mca_mpool_base_module_t *mpool, void *addr, size_t size, uint32_t flags, mca_mpool_base_registration_t **reg)
 register block of memory
 
int mca_mpool_rdma_deregister (mca_mpool_base_module_t *mpool, mca_mpool_base_registration_t *reg)
 deregister memory
 
void mca_mpool_rdma_free (mca_mpool_base_module_t *mpool, void *addr, mca_mpool_base_registration_t *reg)
 free memory allocated by alloc function More...
 
int mca_mpool_rdma_find (struct mca_mpool_base_module_t *mpool, void *addr, size_t size, mca_mpool_base_registration_t **reg)
 find registration for a given block of memory
 
int mca_mpool_rdma_release_memory (mca_mpool_base_module_t *mpool, void *base, size_t size)
 unregister all registration covering the block of memory
 
void mca_mpool_rdma_finalize (struct mca_mpool_base_module_t *mpool)
 finalize mpool
 
int mca_mpool_rdma_ft_event (int state)
 Fault Tolerance Event Notification Function. More...
 

Variables

OMPI_DECLSPEC
mca_mpool_rdma_component_t 
mca_mpool_rdma_component
 

Function Documentation

void* mca_mpool_rdma_alloc ( mca_mpool_base_module_t mpool,
size_t  size,
size_t  align,
uint32_t  flags,
mca_mpool_base_registration_t **  reg 
)

Allocate block of registered memory.

Allocate block of registered memory.

References mca_mpool_rdma_register().

Referenced by mca_mpool_rdma_realloc().

void mca_mpool_rdma_free ( mca_mpool_base_module_t mpool,
void *  addr,
mca_mpool_base_registration_t registration 
)

free memory allocated by alloc function

free memory allocated by alloc function

References mca_mpool_rdma_deregister().

Referenced by mca_mpool_rdma_realloc().

int mca_mpool_rdma_ft_event ( int  state)

Fault Tolerance Event Notification Function.

Parameters
stateCheckpoint Stae
Returns
OMPI_SUCCESS or failure status
void* mca_mpool_rdma_realloc ( mca_mpool_base_module_t mpool,
void *  addr,
size_t  size,
mca_mpool_base_registration_t **  reg 
)

realloc block of registered memory

realloc block of registered memory

References mca_mpool_rdma_alloc(), and mca_mpool_rdma_free().