Hardware Locality (hwloc)  v2.0-20191027.0400.gite37e7d8
linux.h
00001 /*
00002  * Copyright © 2009 CNRS
00003  * Copyright © 2009-2016 Inria.  All rights reserved.
00004  * Copyright © 2009-2011 Université Bordeaux
00005  * See COPYING in top-level directory.
00006  */
00007 
00015 #ifndef HWLOC_LINUX_H
00016 #define HWLOC_LINUX_H
00017 
00018 #include <hwloc.h>
00019 #include <stdio.h>
00020 
00021 
00022 #ifdef __cplusplus
00023 extern "C" {
00024 #endif
00025 
00026 
00043 HWLOC_DECLSPEC int hwloc_linux_set_tid_cpubind(hwloc_topology_t topology, pid_t tid, hwloc_const_cpuset_t set);
00044 
00053 HWLOC_DECLSPEC int hwloc_linux_get_tid_cpubind(hwloc_topology_t topology, pid_t tid, hwloc_cpuset_t set);
00054 
00060 HWLOC_DECLSPEC int hwloc_linux_get_tid_last_cpu_location(hwloc_topology_t topology, pid_t tid, hwloc_bitmap_t set);
00061 
00069 HWLOC_DECLSPEC int hwloc_linux_read_path_as_cpumask(const char *path, hwloc_bitmap_t set);
00070 
00074 #ifdef __cplusplus
00075 } /* extern "C" */
00076 #endif
00077 
00078 
00079 #endif /* HWLOC_LINUX_H */