Pawel Jakub Dawidek wrote:
On Wed, Oct 27, 2010 at 10:49:12AM +0000, David Xu wrote:
I really hate to see such a problem that userland can not figure out
what kernel is using, I try hardly to guess, but still can not find
what it is using. yes, I think the doc may need to be fixed or
another syscall is needed.

Maybe you could just add sysctl and eventually put it into sysconf(3)?


I just found a dirty method, use sizeof(long) and kern.smp.maxcpus
32 to figure out the size the kernel is using, because it is how
cpuset_t is constructed, wish it will never be changed. ;-)


_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to