OpenMPI 0.1.1

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

- File List
- Globals

maffinity_types.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-2005 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$
13 *
14 * Additional copyrights may follow
15 *
16 * $HEADER$
17 */
18 /**
19 * @file
20 *
21 * Common types used in the maffinity framework
22 */
23
24 #ifndef OPAL_MAFFINITY_TYPES_H
25 #define OPAL_MAFFINITY_TYPES_H
26
27 #include "opal_config.h"
28
29 #include <sys/types.h>
30
31 BEGIN_C_DECLS
32
33 /**
34 * Struct used with opal_maffinity_base_module_set_fn_t. It
35 * describes a section of memory (starting address and length).
36 * This is really the same thing as an iovec, but we include a
37 * separate type for it for at least 2 reasons:
38 *
39 * 1. Some OS's iovec definitions are exceedingly lame (e.g.,
40 * Solaris 9 has the length argument as an int, instead of a
41 * size_t).
42 *
43 * 2. We reserve the right to expand/change this struct in the
44 * future.
45 */
46 struct opal_maffinity_base_segment_t {
47 /** Starting address of segment */
48 void *mbs_start_addr;
49 /** Length of segment */
50 size_t mbs_len;
51 };
52 /**
53 * Convenience typedef
54 */
55 typedef struct opal_maffinity_base_segment_t opal_maffinity_base_segment_t;
56
57 END_C_DECLS
58
59 #endif /* OPAL_MAFFINITY_TYPES_H */
opal_maffinity_base_segment_t::mbs_len
size_t mbs_len
Length of segment.
Definition: maffinity_types.h:50
opal_maffinity_base_segment_t
Struct used with opal_maffinity_base_module_set_fn_t.
Definition: maffinity_types.h:46
opal_maffinity_base_segment_t::mbs_start_addr
void * mbs_start_addr
Starting address of segment.
Definition: maffinity_types.h:48