OpenMPI  0.1.1
memory_internal.h
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) 2007 Sun Microsystems, Inc. All rights reserved.
13  * $COPYRIGHT$
14  *
15  * Additional copyrights may follow
16  *
17  * $HEADER$
18  */
19 
20 #ifndef OPAL_MEMORY_MEMORY_INTERNAL_H
21 #define OPAL_MEMORY_MEMORY_INTERNAL_H
22 
23 #include "opal_config.h"
24 #ifdef HAVE_SYS_TYPES_H
25 # include <sys/types.h>
26 #endif
27 
28 /* see memory.h for meaning */
29 #define OPAL_MEMORY_FREE_SUPPORT 0x0001
30 #define OPAL_MEMORY_MUNMAP_SUPPORT 0x0002
31 #define OPAL_MEMORY_CHUNK_SUPPORT 0x0004
32 
33 BEGIN_C_DECLS
34 
35 OPAL_DECLSPEC void opal_mem_hooks_set_support(int support);
36 
37 OPAL_DECLSPEC void opal_mem_hooks_release_hook(void *buf, size_t length, bool from_alloc);
38 
39 END_C_DECLS
40 
41 
42 #endif /* OPAL_MEMORY_MEMORY_INTERNAL_H */