00001 /* 00002 * Copyright © 2009 CNRS, INRIA, Université Bordeaux 1 00003 * See COPYING in top-level directory. 00004 */ 00005 00013 #ifndef HWLOC_LINUX_H 00014 #define HWLOC_LINUX_H 00015 00016 #include <hwloc.h> 00017 #include <stdio.h> 00018 00019 00020 #ifdef __cplusplus 00021 extern "C" { 00022 #endif 00023 00024 00038 int hwloc_linux_parse_cpumap_file(FILE *file, hwloc_cpuset_t set); 00039 00045 int hwloc_linux_set_tid_cpubind(hwloc_topology_t topology, pid_t tid, hwloc_const_cpuset_t set); 00046 00052 int hwloc_linux_get_tid_cpubind(hwloc_topology_t topology, pid_t tid, hwloc_cpuset_t set); 00053 00057 #ifdef __cplusplus 00058 } /* extern "C" */ 00059 #endif 00060 00061 00062 #endif /* HWLOC_GLIBC_SCHED_H */