From owner-freebsd-current Wed Oct 3 12:29:52 2001 Delivered-To: freebsd-current@freebsd.org Received: from robin.mail.pas.earthlink.net (robin.mail.pas.earthlink.net [207.217.120.65]) by hub.freebsd.org (Postfix) with ESMTP id BB1B837B401 for ; Wed, 3 Oct 2001 12:29:50 -0700 (PDT) Received: from mindspring.com (dialup-209.245.142.238.Dial1.SanJose1.Level3.net [209.245.142.238]) by robin.mail.pas.earthlink.net (8.11.5/8.9.3) with ESMTP id f93JTgP15793; Wed, 3 Oct 2001 12:29:42 -0700 (PDT) Message-ID: <3BBB6757.9A668E99@mindspring.com> Date: Wed, 03 Oct 2001 12:30:31 -0700 From: Terry Lambert Reply-To: tlambert2@mindspring.com X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Kazutaka YOKOTA Cc: current@freebsd.org Subject: Re: How to distinguish the SMP kernel and the UP kernel References: <200110030310.MAA13836@zodiac.mech.utsunomiya-u.ac.jp> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Kazutaka YOKOTA wrote: > > Is there any way for the loadable module to detect if > the kernel is configured for SMP or UP? There is a global variable, "ncpu". Its name may have changed recently, so you will want to look at the SYSCTL() stuff in /sys/i386/i386 to be sure. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message