2
* Copyright © 2011 inria. All rights reserved.
3
* See COPYING in top-level directory.
6
#ifndef HWLOC_PORT_PICL_H
7
#define HWLOC_PORT_PICL_H
12
#define PICL_PROPNAMELEN_MAX 256
14
typedef uint64_t picl_nodehdl_t;
15
typedef uint64_t picl_prophdl_t;
20
PICL_PTYPE_UNSIGNED_INT,
26
picl_prop_type_t type;
28
char name[PICL_PROPNAMELEN_MAX];
37
extern int picl_initialize(void);
38
extern int picl_shutdown(void);
39
extern int picl_get_root(picl_nodehdl_t *nodehandle);
40
extern int picl_get_first_prop(picl_nodehdl_t nodeh, picl_prophdl_t *proph);
41
extern int picl_get_next_prop(picl_prophdl_t proph, picl_prophdl_t *nexth);
42
extern int picl_get_propinfo(picl_prophdl_t proph, picl_propinfo_t *pi);
43
extern int picl_get_propval(picl_prophdl_t proph, void *valbuf, size_t sz);
44
extern int picl_get_next_by_row(picl_prophdl_t thish, picl_prophdl_t *proph);
45
extern int picl_get_next_by_col(picl_prophdl_t thish, picl_prophdl_t *proph);
46
extern int picl_walk_tree_by_class(picl_nodehdl_t rooth, const char *classname, void *c_args, int (*callback_fn)(picl_nodehdl_t hdl, void *args));
48
#endif /* HWLOC_PORT_PICL_H */