Date: Sat, 20 Jun 2015 11:53:28 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 200802] MAXCPU bump to 256 breaks ABI for cpuset_getaffinity/setaffinity Message-ID: <bug-200802-8-2IreAY8xvY@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-200802-8@https.bugs.freebsd.org/bugzilla/> References: <bug-200802-8@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200802 --- Comment #2 from John Baldwin <jhb@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-200802-8-2IreAY8xvY>