Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 03 Oct 2001 12:30:31 -0700
From:      Terry Lambert <tlambert2@mindspring.com>
To:        Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
Cc:        current@freebsd.org
Subject:   Re: How to distinguish the SMP kernel and the UP kernel
Message-ID:  <3BBB6757.9A668E99@mindspring.com>
References:  <200110030310.MAA13836@zodiac.mech.utsunomiya-u.ac.jp>

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3BBB6757.9A668E99>