OpenMPI 0.1.1

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

mpool_fake.h
Go to the documentation of this file.
1 /*
2 * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
3 * University Research and Technology
4 * Corporation. All rights reserved.
5 * Copyright (c) 2004-2006 The University of Tennessee and The University
6 * of Tennessee Research Foundation. All rights
7 * reserved.
8 * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
9 * University of Stuttgart. All rights reserved.
10 * Copyright (c) 2004-2005 The Regents of the University of California.
11 * All rights reserved.
12 * Copyright (c) 2008 Myricom. All rights reserved.
13 *
14 * $COPYRIGHT$
15 *
16 * Additional copyrights may follow
17 *
18 * $HEADER$
19 */
20 /**
21 * @file
22 */
23
24 #ifndef MCA_MPOOL_FAKE_H
25 #define MCA_MPOOL_FAKE_H
26
27 #include "ompi_config.h"
28 #include "ompi/mca/mpool/mpool.h"
29
30 BEGIN_C_DECLS
31
32 typedef struct mca_mpool_fake_component_t {
33 mca_mpool_base_component_t super;
34 } mca_mpool_fake_component_t;
35
36 OMPI_DECLSPEC extern mca_mpool_fake_component_t mca_mpool_fake_component;
37
38 typedef struct mca_mpool_base_resources_t {
39 int (*regcache_clean)(void *ptr, size_t size);
40 } mca_mpool_base_resources_t;
41
42 typedef struct mca_mpool_fake_module_t {
43 mca_mpool_base_module_t super;
44 mca_mpool_base_resources_t resources;
45 } mca_mpool_fake_module_t;
46
47 /*
48 * Initializes the mpool module.
49 */
50 void mca_mpool_fake_module_init(mca_mpool_fake_module_t *mpool);
51
52 /**
53 * unregister all registration covering the block of memory
54 */
55 int mca_mpool_fake_release_memory(mca_mpool_base_module_t* mpool, void *base,
56 size_t size);
57
58 /**
59 * finalize mpool
60 */
61 void mca_mpool_fake_finalize(struct mca_mpool_base_module_t *mpool);
62
63 /**
64 * Fault Tolerance Event Notification Function
65 * @param state Checkpoint Stae
66 * @return OMPI_SUCCESS or failure status
67 */
68 int mca_mpool_fake_ft_event(int state);
69
70 END_C_DECLS
71 #endif
mca_mpool_fake_release_memory
int mca_mpool_fake_release_memory(mca_mpool_base_module_t *mpool, void *base, size_t size)
unregister all registration covering the block of memory
Definition: mpool_fake_module.c:48
mca_mpool_base_component_2_0_0_t
mpool component descriptor.
Definition: mpool.h:154
mca_mpool_fake_component_t
Definition: mpool_fake.h:32
mca_mpool_fake_ft_event
int mca_mpool_fake_ft_event(int state)
Fault Tolerance Event Notification Function.
Definition: mpool_fake_module.c:63
mpool.h
Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana University Research and Techno...
mca_mpool_fake_finalize
void mca_mpool_fake_finalize(struct mca_mpool_base_module_t *mpool)
finalize mpool
Definition: mpool_fake_module.c:58
mca_mpool_fake_module_t
Definition: mpool_fake.h:42
mca_mpool_base_resources_t
Definition: mpool_fake.h:38
mca_mpool_base_module_t
mpool module descriptor.
Definition: mpool.h:174