RE: About rebuild 2.4.x kernel to support SMP.

Vivek Dasmohapatra (vivek@etla.org)
Thu, 26 Apr 2001 17:41:07 +0100 (BST)


On Fri, 27 Apr 2001, Yiping Chen wrote:

> Where the uname command extract the kernel version information(eg:
> 2.4.2-2smp or 2.2.16)?

uname [the shell command] is a wrapper around the uname system call:

man 1 uname
man 2 uname

> I means from which file, or use which system call?

uname({sysname="Linux",
nodename="arachne",
release="2.2.18-00",
version="#9 Wed Jan 3 13:48:37 GMT 2001",
machine="i686"}) = 0

> I don't know where to get the kernel_version information. I need some help.
> Thanks!!
> may I use uname? I worry that the driver will install to incorrect path, and
> user will complain it.

You can [and may] use uname to get the kernel version string. I am less
certain about the exact layout of the module tree under 2.4.3.

-- 
I dunno about the Big Bang. The Big Kludge I can believe in.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/