Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Feb 2023 19:07:46 GMT
From:      Dmitry Chagin <dchagin@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: dda428e2a539 - stable/13 - libthr: Fix pthread_attr_[g|s]etaffinity_np manual.
Message-ID:  <202302061907.316J7keq076934@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by dchagin:

URL: https://cgit.FreeBSD.org/src/commit/?id=dda428e2a539a5aa7d8e6f2401265e1896c3806b

commit dda428e2a539a5aa7d8e6f2401265e1896c3806b
Author:     Dmitry Chagin <dchagin@FreeBSD.org>
AuthorDate: 2023-01-29 12:37:18 +0000
Commit:     Dmitry Chagin <dchagin@FreeBSD.org>
CommitDate: 2023-02-06 19:06:30 +0000

    libthr: Fix pthread_attr_[g|s]etaffinity_np manual.
    
    Fix my fault in f35093f8.
    
    MFC after:              1 week
    
    (cherry picked from commit 2b87addf526e058158a332547d44b24a80f71321)
---
 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202302061907.316J7keq076934>