Re: How to distinguish the SMP kernel and the UP kernel

2001-10-03 Thread Terry Lambert

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 [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



How to distinguish the SMP kernel and the UP kernel

2001-10-02 Thread Kazutaka YOKOTA

Is there any way for the loadable module to detect if
the kernel is configured for SMP or UP?

Kazu

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message