Open MPI logo

Portable Hardware Locality (hwloc) Documentation: v2.0.4

  |   Home   |   Support   |   FAQ   |  
shmem.h
1 /*
2  * Copyright © 2013-2018 Inria. All rights reserved.
3  * See COPYING in top-level directory.
4  */
5 
10 #ifndef HWLOC_SHMEM_H
11 #define HWLOC_SHMEM_H
12 
13 #include <hwloc.h>
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #elif 0
18 }
19 #endif
20 
21 
53 HWLOC_DECLSPEC int hwloc_shmem_topology_get_length(hwloc_topology_t topology,
54  size_t *lengthp,
55  unsigned long flags);
56 
82 HWLOC_DECLSPEC int hwloc_shmem_topology_write(hwloc_topology_t topology,
83  int fd, hwloc_uint64_t fileoffset,
84  void *mmap_address, size_t length,
85  unsigned long flags);
86 
125 HWLOC_DECLSPEC int hwloc_shmem_topology_adopt(hwloc_topology_t *topologyp,
126  int fd, hwloc_uint64_t fileoffset,
127  void *mmap_address, size_t length,
128  unsigned long flags);
132 #ifdef __cplusplus
133 } /* extern "C" */
134 #endif
135 
136 
137 #endif /* HWLOC_SHMEM_H */
struct hwloc_topology * hwloc_topology_t
Topology context.
Definition: hwloc.h:637
int hwloc_shmem_topology_get_length(hwloc_topology_t topology, size_t *lengthp, unsigned long flags)
Get the required shared memory length for storing a topology.
int hwloc_shmem_topology_adopt(hwloc_topology_t *topologyp, int fd, hwloc_uint64_t fileoffset, void *mmap_address, size_t length, unsigned long flags)
Adopt a shared memory topology stored in a file.
int hwloc_shmem_topology_write(hwloc_topology_t topology, int fd, hwloc_uint64_t fileoffset, void *mmap_address, size_t length, unsigned long flags)
Duplicate a topology to a shared memory file.