1
/*****************************************************************************\
2
* topology_none.c - Default for system topology
3
*****************************************************************************
4
* Copyright (C) 2009 Lawrence Livermore National Security.
5
* Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
6
* Written by Morris Jette <jette1@llnl.gov>
7
* CODE-OCEC-09-009. All rights reserved.
9
* This file is part of SLURM, a resource management program.
10
* For details, see <https://computing.llnl.gov/linux/slurm/>.
11
* Please also read the included file: DISCLAIMER.
13
* SLURM is free software; you can redistribute it and/or modify it under
14
* the terms of the GNU General Public License as published by the Free
15
* Software Foundation; either version 2 of the License, or (at your option)
18
* In addition, as a special exception, the copyright holders give permission
19
* to link the code of portions of this program with the OpenSSL library under
20
* certain conditions as described in each individual source file, and
21
* distribute linked combinations including the two. You must obey the GNU
22
* General Public License in all respects for all of the code used other than
23
* OpenSSL. If you modify file(s) with this exception, you may extend this
24
* exception to your version of the file(s), but you are not obligated to do
25
* so. If you do not wish to do so, delete this exception statement from your
26
* version. If you delete this exception statement from all source files in
27
* the program, then also delete it here.
29
* SLURM is distributed in the hope that it will be useful, but WITHOUT ANY
30
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
31
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
34
* You should have received a copy of the GNU General Public License along
35
* with SLURM; if not, write to the Free Software Foundation, Inc.,
36
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
37
\*****************************************************************************/
44
#include <sys/types.h>
46
#include <slurm/slurm_errno.h>
47
#include "src/common/slurm_xlator.h"
50
* These variables are required by the generic plugin interface. If they
51
* are not found in the plugin, the plugin loader will ignore it.
53
* plugin_name - a string giving a human-readable description of the
54
* plugin. There is no maximum length, but the symbol must refer to
57
* plugin_type - a string suggesting the type of the plugin or its
58
* applicability to a particular form of data or method of data handling.
59
* If the low-level plugin API is used, the contents of this string are
60
* unimportant and may be anything. SLURM uses the higher-level plugin
61
* interface which requires this string to be of the form
63
* <application>/<method>
65
* where <application> is a description of the intended application of
66
* the plugin (e.g., "task" for task control) and <method> is a description
67
* of how this plugin satisfies that application. SLURM will only load
68
* a task plugin if the plugin_type string has a prefix of "task/".
70
* plugin_version - an unsigned 32-bit integer giving the version number
71
* of the plugin. If major and minor revisions are desired, the major
72
* version number may be multiplied by a suitable magnitude constant such
73
* as 100 or 1000. Various SLURM versions will likely require a certain
74
* minimum versions for their plugins as this API matures.
76
const char plugin_name[] = "topology NONE plugin";
77
const char plugin_type[] = "topology/none";
78
const uint32_t plugin_version = 100;
81
* init() is called when the plugin is loaded, before any other functions
82
* are called. Put global initialization here.
86
verbose("%s loaded", plugin_name);
91
* fini() is called when the plugin is removed. Clear any allocated
100
* topo_build_config - build or rebuild system topology information
101
* after a system startup or reconfiguration.
103
extern int topo_build_config(void)
105
return SLURM_SUCCESS;