Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Oct 2010 16:37:38 +0000
From:      David Xu <davidxu@freebsd.org>
To:        Pawel Jakub Dawidek <pjd@freebsd.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Garrett Cooper <gcooper@freebsd.org>
Subject:   Re: svn commit: r214409 - head/sys/kern
Message-ID:  <4CC85552.2020100@freebsd.org>
In-Reply-To: <20101027082122.GD1848@garage.freebsd.pl>
References:  <201010270232.o9R2Wsu3084553@svn.freebsd.org> <AANLkTi=2dTVmB8Goj%2BNXq4F6SmZBNS3bxn8gLjmQ%2BdfV@mail.gmail.com> <4CC803A8.3040602@freebsd.org> <20101027082122.GD1848@garage.freebsd.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
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. ;-)





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4CC85552.2020100>