git: 2b87addf526e - main - libthr: Fix pthread_attr_[g|s]etaffinity_np manual.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 29 Jan 2023 12:38:22 UTC
The branch main has been updated by dchagin:
URL: https://cgit.FreeBSD.org/src/commit/?id=2b87addf526e058158a332547d44b24a80f71321
commit 2b87addf526e058158a332547d44b24a80f71321
Author: Dmitry Chagin <dchagin@FreeBSD.org>
AuthorDate: 2023-01-29 12:37:18 +0000
Commit: Dmitry Chagin <dchagin@FreeBSD.org>
CommitDate: 2023-01-29 12:37:18 +0000
libthr: Fix pthread_attr_[g|s]etaffinity_np manual.
Fix my fault in f35093f8.
MFC after: 1 week
---
share/man/man3/pthread_attr_affinity_np.3 | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/share/man/man3/pthread_attr_affinity_np.3 b/share/man/man3/pthread_attr_affinity_np.3
index 2c85aee9ac19..c1b9d0d79cd8 100644
--- a/share/man/man3/pthread_attr_affinity_np.3
+++ b/share/man/man3/pthread_attr_affinity_np.3
@@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd April 27, 2022
+.Dd January 29, 2023
.Dt PTHREAD_ATTR_AFFINITY_NP 3
.Os
.Sh NAME
@@ -52,16 +52,17 @@ are composed using the
.Dv CPU_SET
macros.
If the user-supplied mask is not large enough to fit all of the matching CPUs,
-.Fn cpuset_getaffinity
+.Fn pthread_attr_getaffinity_np
fails with
.Er ERANGE .
Calls to
-.Fn cpuset_setaffinity
+.Fn pthread_attr_setaffinity_np
tolerate masks of any size with no restrictions.
-The kernel uses the meaningful part of the mask, where the upper bound is
+.Fn pthread_attr_setaffinity_np
+uses the meaningful part of the mask, where the upper bound is
the maximum CPU id present in the system.
If bits for non-existing CPUs are set, calls to
-.Fn cpuset_setaffinity
+.Fn pthread_attr_setaffinity_np
fails with
.Er EINVAL .
.Pp