Hardware Locality (hwloc): shmem.h Source File

Hardware Locality (hwloc) 2.14.0rc1

shmem.h
1/*
2 * SPDX-License-Identifier: BSD-3-Clause
3 * Copyright © 2013-2023 Inria. All rights reserved.
4 * See COPYING in top-level directory.
5 */
6
10
11#ifndef HWLOC_SHMEM_H
12#define HWLOC_SHMEM_H
13
14#include "hwloc.h"
15
16#ifdef __cplusplus
17extern "C" {
18#elif 0
19}
20#endif
21
22
46
56HWLOC_DECLSPEC int hwloc_shmem_topology_get_length(hwloc_topology_t topology,
57 size_t *lengthp,
58 unsigned long flags);
59
86HWLOC_DECLSPEC int hwloc_shmem_topology_write(hwloc_topology_t topology,
87 int fd, hwloc_uint64_t fileoffset,
88 void *mmap_address, size_t length,
89 unsigned long flags);
90
131HWLOC_DECLSPEC int hwloc_shmem_topology_adopt(hwloc_topology_t *topologyp,
132 int fd, hwloc_uint64_t fileoffset,
133 void *mmap_address, size_t length,
134 unsigned long flags);
136
137
138#ifdef __cplusplus
139} /* extern "C" */
140#endif
141
142
143#endif /* HWLOC_SHMEM_H */
hwloc_topology_t
struct hwloc_topology * hwloc_topology_t
Topology context.
Definition hwloc.h:748
hwloc_shmem_topology_adopt
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.
hwloc_shmem_topology_write
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.
hwloc_shmem_topology_get_length
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.