[Bug 200802] MAXCPU bump to 256 breaks ABI for cpuset_getaffinity/setaffinity
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Jun 20 11:53:28 UTC 2015
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200802
--- Comment #2 from John Baldwin <jhb at FreeBSD.org> ---
Hmm, the simplest change is to revert MAXCPU for now. Longer term it might be
nice to rework the cpusetsize changes so that they only fail if there are CPU
IDs that don't fit in the requested size.
I think doing that would involve:
1) Replacing 'sizeof(cpuset_t)' with something like '(mp_maxid + NBBY - 1) /
NBBY'
2) When working with a cpuset internally rounding up the size to
'sizeof(cpuset_t)' to pass around internally and then truncating to the
requested size when doing a copyout.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list