File: empty.h

package info (click to toggle)
openmpi 1.6.5-9.1%2Bdeb8u1
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 91,628 kB
  • ctags: 44,305
  • sloc: ansic: 408,966; cpp: 44,454; sh: 27,828; makefile: 10,486; asm: 3,882; python: 1,239; lex: 805; perl: 549; csh: 253; fortran: 232; f90: 126; tcl: 12
file content (56 lines) | stat: -rw-r--r-- 1,861 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
 * Copyright (c) 2009 Cisco Systems, Inc.  All rights reserved.
 * $COPYRIGHT$
 * 
 * Additional copyrights may follow
 * 
 * $HEADER$
 */

#ifndef OPAL_MCA_MEMCPY_BASE_MEMORY_BASE_DEFAULT_H
#define OPAL_MCA_MEMCPY_BASE_MEMORY_BASE_DEFAULT_H

#include "opal_config.h"

/**
 * Provided for memory components that don't provide an asynchronous
 * method for determining if memory mappings have changed.  If a
 * component only has a synchronous / interactive method of checking,
 * then it can override this macro with some logic to do a (hopefully)
 * cheap check to see if memory mappings have changed.  The intent is
 * that if this cheap check returns true, the upper layer will then
 * invoke the memoryc_process() function to actually process what
 * changed.  This function will be invoked by the upper layer with the
 * syntax:
 *
 * if (opal_memory_changed()) { ... }
 *
 * Hence, if you need any kind of sophisticated logic, you might want
 * to put it in an inline function and have the #define call the
 * inline function.
 */
#define opal_memory_changed() 0

BEGIN_C_DECLS

/**
 * Default (empty) implementation of the memoryc_register function.
 *
 * See opal/mca/memory/memory.h for a description of the parameters.
 */
OPAL_DECLSPEC int opal_memory_base_component_register_empty(void *start, 
                                                            size_t len,
                                                            uint64_t cookie);

/**
 * Default (empty) implementation of the memoryc_deregister function
 *
 * See opal/mca/memory/memory.h for a description of the parameters.
 */
OPAL_DECLSPEC int opal_memory_base_component_deregister_empty(void *start, 
                                                              size_t len,
                                                              uint64_t cookie);

END_C_DECLS

#endif