Hardware Locality (hwloc)  v2.2-20200401.0300.gitd2f52ab
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 
00020 #include <stdio.h>
00021 
00022 
00023 #ifdef __cplusplus
00024 extern "C" {
00025 #endif
00026 
00027 
00044 HWLOC_DECLSPEC int hwloc_linux_set_tid_cpubind(hwloc_topology_t topology, pid_t tid, hwloc_const_cpuset_t set);
00045 
00054 HWLOC_DECLSPEC int hwloc_linux_get_tid_cpubind(hwloc_topology_t topology, pid_t tid, hwloc_cpuset_t set);
00055 
00061 HWLOC_DECLSPEC int hwloc_linux_get_tid_last_cpu_location(hwloc_topology_t topology, pid_t tid, hwloc_bitmap_t set);
00062 
00070 HWLOC_DECLSPEC int hwloc_linux_read_path_as_cpumask(const char *path, hwloc_bitmap_t set);
00071 
00075 #ifdef __cplusplus
00076 } /* extern "C" */
00077 #endif
00078 
00079 
00080 #endif /* HWLOC_LINUX_H */