From nobody Mon Feb 6 19:07:46 2023 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4P9bPH4jvXz3n4QG; Mon, 6 Feb 2023 19:07:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P9bPH0l35z3QDV; Mon, 6 Feb 2023 19:07:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675710467; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=XoOmcL1834+zYlVqh9w3FxYz72lPa13c4gEe8PbJ8dw=; b=ux+rwoEMvEQqatiqgx+WjcM2uJN430XtmIp6dGJh0MhRAUouXxTIccf3HghYU5wOv7hItE Ep8AjRrG9mOqODVyuacgidMlMhn9IGEn+YG5xqIZjRsBlH17bPIkMNdbX8C/IS2KNdbx8I Q4Xxf+y84cUYs34Qlmvy/AozSffy226IKY86Zb/tNQ6XVGOVKxYanG9oeBB2Ah+gvqJpFa O8OI5t3BCtrlarYqHg8NbxNMBBUIuY8TLUCIPKhjp+YAEDIdUycDdoehUnQzhCkU291oM2 Yn1jhQN/o5KIayG29S+EngwC/YtZCwpLpLj2lF0qk5PRAdBN72FrYPqQ9ntPxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675710467; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=XoOmcL1834+zYlVqh9w3FxYz72lPa13c4gEe8PbJ8dw=; b=x8eC8s5oR0uKSW1lSUlVEJiRgTzBrfcHgthoHm+tj2Bxe3GwK6A5BrdnP8+mTMDYmEeGjF Q+9Zi660t3ZVcCcjNFzbCwZJWVmK4Iu0G14+VMBXaihmAefSforWHl4xPtA/7/sEL4ne/X zn2EX2nHlIVCmS+zXVHaRKkkks+xDEqrUM+6Sqh531YPkw5EmdFbDJQE+ooaIzorkS1lWx qy4RLdcjJ3EwQ0ZQMP/rV+NDR6MabP0WUVg3k36pCBdK3WI97g/Oy3cefzPApqSpxpApnT 3sLG+AQrGLBglsB2CdsrUrKjBrPWe+4DzbOXsettoLaq0C3sFUxBkvWkae5R7Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675710467; a=rsa-sha256; cv=none; b=fQmoshXmyGsSU4dPVqDWsoaO9YCI8WtjfjbhokFpWf7pbrW37UIcRGtB470kMzAb+47vQo fsgwcg5kb1QLfJ9DHPCEHhIuobHr7W5a2ph0aRj8SfIkohuWLkydykPluOWUBGtdgT6LGK fIOcBxgechwS/F/Uc3tLRFDHrgN8ZvxHrgDPSRR1KPrWzatuYiQxLnqolS1DyPXqud31Wn OlPYUOF24Fh9T9+ZGi9NpMXx1F33NX6eV/kjbxlvsq6C3Xbj9itztyycY7uE8eYnzJXE4P WqVxzy2sP79PH3oQ/+DWL2Zi3x9pHsnVG4o/TnGO8pavz9CELcrom9d7i4NS9Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4P9bPG6xfZzmWJ; Mon, 6 Feb 2023 19:07:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 316J7kb0076935; Mon, 6 Feb 2023 19:07:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 316J7keq076934; Mon, 6 Feb 2023 19:07:46 GMT (envelope-from git) Date: Mon, 6 Feb 2023 19:07:46 GMT Message-Id: <202302061907.316J7keq076934@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dmitry Chagin Subject: git: dda428e2a539 - stable/13 - libthr: Fix pthread_attr_[g|s]etaffinity_np manual. List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dchagin X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: dda428e2a539a5aa7d8e6f2401265e1896c3806b Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=dda428e2a539a5aa7d8e6f2401265e1896c3806b commit dda428e2a539a5aa7d8e6f2401265e1896c3806b Author: Dmitry Chagin AuthorDate: 2023-01-29 12:37:18 +0000 Commit: Dmitry Chagin 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