diff options
author | Brooks Davis <brooks@FreeBSD.org> | 2022-09-23 20:20:52 +0000 |
---|---|---|
committer | Brooks Davis <brooks@FreeBSD.org> | 2022-09-26 18:15:29 +0000 |
commit | 327705fbba740a28101aa2f5bd6a035046a5a7c5 (patch) | |
tree | 1010a9d5cac554dd52641520df4edf740c3ced09 | |
parent | 616b1b813891d469afc82df175cf50817d03ba25 (diff) |
cpuset(9): Refer to CPU_SETSIZE not MAXCPU
The maximum CPU number of a cpuset_t is determined by CPU_SETSIZE. In
the kernel this is MAXCPU, but in userspace it is CPU_MAXSIZE unless
CPU_SETSIZE is defined before including sys/_cpuset.h. CPU_MAXSIZE is
256 and in userspace MAXCPU is generally 1 because it being set to a
larger MD value is gated on SMP being defined (not generally the case in
userspace).
Reported by: Nathaniel Wesley Filardo <nwfilardo@gmail.com>
Reviewed by: cem, jhb
Differential Revision: https://reviews.freebsd.org/D36679
(cherry picked from commit 8232a1eddadd6e70ce7bee085344b182517d44a7)
-rw-r--r-- | share/man/man9/cpuset.9 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/share/man/man9/cpuset.9 b/share/man/man9/cpuset.9 index 1d778ad940d3..e8522684e1ee 100644 --- a/share/man/man9/cpuset.9 +++ b/share/man/man9/cpuset.9 @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd July 29, 2016 +.Dd September 23, 2022 .Dt CPUSET 9 .Os .Sh NAME @@ -108,9 +108,9 @@ Each CPU is represented by a single bit. The maximum number of CPUs representable by .Vt cpuset_t is -.Va MAXCPU . +.Va CPU_SETSIZE . Individual CPUs in cpusets are referenced with indices zero through -.Fa MAXCPU - 1 . +.Fa CPU_SETSIZE - 1 . .Pp The .Fn CPUSET_T_INITIALIZER |