File: node_name_map.h

package info (click to toggle)
rdma-core 61.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,124 kB
  • sloc: ansic: 176,798; python: 15,496; sh: 2,742; perl: 1,465; makefile: 73
file content (18 lines) | stat: -rw-r--r-- 501 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* Copyright (c) 2019 Mellanox Technologies. All rights reserved.
 *
 * Connect to opensm's cl_nodenamemap.h if it is available.
 */
#ifndef __LIBUTIL_NODE_NAME_MAP_H__
#define __LIBUTIL_NODE_NAME_MAP_H__

#include <stdint.h>

struct nn_map;
typedef struct nn_map nn_map_t;

nn_map_t *open_node_name_map(const char *node_name_map);
void close_node_name_map(nn_map_t *map);
char *remap_node_name(nn_map_t *map, uint64_t target_guid, const char *nodedesc);
char *clean_nodedesc(char *nodedesc);

#endif