Page MenuHomeFreeBSD

cpuset(9): Refer to CPU_SETSIZE not MAXCPU
ClosedPublic

Authored by brooks on Sep 23 2022, 6:01 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 10, 8:53 AM
Unknown Object (File)
Wed, Dec 4, 3:52 PM
Unknown Object (File)
Nov 23 2024, 3:49 PM
Unknown Object (File)
Nov 22 2024, 5:16 AM
Unknown Object (File)
Nov 14 2024, 2:05 PM
Unknown Object (File)
Nov 7 2024, 1:02 AM
Unknown Object (File)
Oct 17 2024, 10:52 AM
Unknown Object (File)
Oct 17 2024, 1:13 AM
Subscribers

Details

Summary

The maximum CPU number a cpuset_t is determined by CPU_SETSIZE. In the
kernel this is MAXCPU, but in userspace it is CPU_SETSIZE which defaults
to 256 and MAXCPU is 1 because it being set to a larger value is gated
on SMP being defined which is not generally the case in userspace.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 47502
Build 44389: arc lint + arc unit