Skip to content

Commit e381de8

Browse files
committedOct 10, 2023
API: clarify that set_pid() assumes the PID won't change until load()
Refs #624. Signed-off-by: Brice Goglin <[email protected]>
1 parent e6889d3 commit e381de8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎include/hwloc.h

+4
Original file line numberDiff line numberDiff line change
@@ -2036,6 +2036,10 @@ HWLOC_DECLSPEC int hwloc_free(hwloc_topology_t topology, void *addr, size_t len)
20362036
* \note -1 is returned and errno is set to \c ENOSYS on platforms that do not
20372037
* support this feature.
20382038
*
2039+
* \note The PID will not actually be used until hwloc_topology_load().
2040+
* If the corresponding process exits in the meantime, hwloc will ignore the PID.
2041+
* If another process reuses the PID, the view of that process will be used.
2042+
*
20392043
* \return 0 on success, -1 on error.
20402044
*/
20412045
HWLOC_DECLSPEC int hwloc_topology_set_pid(hwloc_topology_t __hwloc_restrict topology, hwloc_pid_t pid);

0 commit comments

Comments
 (0)
Please sign in to comment.