1
1
/*
2
2
* Copyright © 2009 CNRS
3
- * Copyright © 2009-2021 Inria. All rights reserved.
3
+ * Copyright © 2009-2023 Inria. All rights reserved.
4
4
* Copyright © 2009-2011 Université Bordeaux
5
5
* See COPYING in top-level directory.
6
6
*/
@@ -38,6 +38,8 @@ extern "C" {
38
38
* The behavior is exactly the same as the Linux sched_setaffinity system call,
39
39
* but uses a hwloc cpuset.
40
40
*
41
+ * \return 0 on success, -1 on error.
42
+ *
41
43
* \note This is equivalent to calling hwloc_set_proc_cpubind() with
42
44
* HWLOC_CPUBIND_THREAD as flags.
43
45
*/
@@ -52,6 +54,8 @@ HWLOC_DECLSPEC int hwloc_linux_set_tid_cpubind(hwloc_topology_t topology, pid_t
52
54
* The behavior is exactly the same as the Linux sched_getaffinity system call,
53
55
* but uses a hwloc cpuset.
54
56
*
57
+ * \return 0 on success, -1 on error.
58
+ *
55
59
* \note This is equivalent to calling hwloc_get_proc_cpubind() with
56
60
* ::HWLOC_CPUBIND_THREAD as flags.
57
61
*/
@@ -62,6 +66,8 @@ HWLOC_DECLSPEC int hwloc_linux_get_tid_cpubind(hwloc_topology_t topology, pid_t
62
66
* The CPU-set \p set (previously allocated by the caller)
63
67
* is filled with the PU which the thread last ran on.
64
68
*
69
+ * \return 0 on success, -1 on error.
70
+ *
65
71
* \note This is equivalent to calling hwloc_get_proc_last_cpu_location() with
66
72
* ::HWLOC_CPUBIND_THREAD as flags.
67
73
*/
@@ -72,6 +78,8 @@ HWLOC_DECLSPEC int hwloc_linux_get_tid_last_cpu_location(hwloc_topology_t topolo
72
78
* Might be used when reading CPU set from sysfs attributes such as topology
73
79
* and caches for processors, or local_cpus for devices.
74
80
*
81
+ * \return 0 on success, -1 on error.
82
+ *
75
83
* \note This function ignores the HWLOC_FSROOT environment variable.
76
84
*/
77
85
HWLOC_DECLSPEC int hwloc_linux_read_path_as_cpumask (const char * path , hwloc_bitmap_t set );
0 commit comments