svn commit: r214409 - head/sys/kern

Kostik Belousov kostikbel at gmail.com
Wed Oct 27 13:33:18 UTC 2010


On Wed, Oct 27, 2010 at 04:37:38PM +0000, David Xu wrote:
> 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. ;-)
> 
I think that sysctl is the way forward, but you may add non-portable
FreeBSD function to get the value, and use an ELF aux vector interface
to avoid sysctl most of the time.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/svn-src-head/attachments/20101027/8ab08207/attachment.pgp


More information about the svn-src-head mailing list