| 1 |
/* |
| 2 |
* SPDX-License-Identifier: BSD-3-Clause |
| 3 |
* Copyright © 2012-2019 Inria. All rights reserved. |
| 4 |
* See COPYING in top-level directory. |
| 5 |
*/ |
| 6 |
|
| 7 |
|
| 8 |
#ifdef HWLOC_INSIDE_PLUGIN |
| 9 |
/* |
| 10 |
* these declarations are internal only, they are not available to plugins |
| 11 |
* (many functions below are internal static symbols). |
| 12 |
*/ |
| 13 |
#error This file should not be used in plugins |
| 14 |
#endif |
| 15 |
|
| 16 |
|
| 17 |
#ifndef PRIVATE_COMPONENTS_H |
| 18 |
#define PRIVATE_COMPONENTS_H 1 |
| 19 |
|
| 20 |
#include "hwloc/plugins.h" |
| 21 |
|
| 22 |
struct hwloc_topology; |
| 23 |
|
| 24 |
extern int hwloc_disc_component_force_enable(struct hwloc_topology *topology, |
| 25 |
int envvar_forced, /* 1 if forced through envvar, 0 if forced through API */ |
| 26 |
const char *name, |
| 27 |
const void *data1, const void *data2, const void *data3); |
| 28 |
extern void hwloc_disc_components_enable_others(struct hwloc_topology *topology); |
| 29 |
|
| 30 |
/* Compute the topology is_thissystem flag and find some callbacks based on enabled backends */ |
| 31 |
extern void hwloc_backends_is_thissystem(struct hwloc_topology *topology); |
| 32 |
extern void hwloc_backends_find_callbacks(struct hwloc_topology *topology); |
| 33 |
|
| 34 |
/* Initialize the lists of components and backends used by a topology */ |
| 35 |
extern void hwloc_topology_components_init(struct hwloc_topology *topology); |
| 36 |
/* Disable and destroy all backends used by a topology */ |
| 37 |
extern void hwloc_backends_disable_all(struct hwloc_topology *topology); |
| 38 |
/* Cleanup the lists of components used by a topology */ |
| 39 |
extern void hwloc_topology_components_fini(struct hwloc_topology *topology); |
| 40 |
|
| 41 |
/* Used by the core to setup/destroy the list of components */ |
| 42 |
extern void hwloc_components_init(void); /* increases components refcount, should be called exactly once per topology (during init) */ |
| 43 |
extern void hwloc_components_fini(void); /* decreases components refcount, should be called exactly once per topology (during destroy) */ |
| 44 |
|
| 45 |
#endif /* PRIVATE_COMPONENTS_H */ |
| 46 |
|