On Fri, Mar 31, 2000 at 11:20:43AM -0800, Quang Nguyêñ (formerly Ngô) wrote:
> How do you determine from the user level whether you are running under the
> SMP or UP kernel? Is there a function call for it? I know there is
> __SMP__, but I want to check it dynamically.
[bcollins@auric(2:53pm)-~]%uname -a
Linux auric 2.2.15-pre14 #1 SMP Mon Mar 13 23:07:08 EST 2000 sparc64 unknown
Works for any arch. If it contains "SMP", then well...if not...you get the
idea :)
Ben
-- -----------=======-=-======-=========-----------=====------------=-=------ / Ben Collins -- ...on that fantastic voyage... -- Debian GNU/Linux \ ` bcollins@debian.org -- bcollins@openldap.org -- bmc@visi.net ' `---=========------=======-------------=-=-----=-===-======-------=--=---'- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Fri Mar 31 2000 - 21:00:30 EST