From owner-svn-src-all@FreeBSD.ORG Wed Oct 27 08:37:38 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6CD1A106566B; Wed, 27 Oct 2010 08:37:38 +0000 (UTC) (envelope-from davidxu@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 58BAC8FC19; Wed, 27 Oct 2010 08:37:38 +0000 (UTC) Received: from xyf.my.dom (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o9R8ba3k092394; Wed, 27 Oct 2010 08:37:37 GMT (envelope-from davidxu@freebsd.org) Message-ID: <4CC85552.2020100@freebsd.org> Date: Wed, 27 Oct 2010 16:37:38 +0000 From: David Xu User-Agent: Thunderbird 2.0.0.24 (X11/20100630) MIME-Version: 1.0 To: Pawel Jakub Dawidek References: <201010270232.o9R2Wsu3084553@svn.freebsd.org> <4CC803A8.3040602@freebsd.org> <20101027082122.GD1848@garage.freebsd.pl> In-Reply-To: <20101027082122.GD1848@garage.freebsd.pl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Garrett Cooper Subject: Re: svn commit: r214409 - head/sys/kern X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Oct 2010 08:37:38 -0000 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. ;-)