On 1/28/06, Ernie Schroder <[EMAIL PROTECTED]> wrote:
> Where does uname find kernel version? For my last 2 new kernels, uname -a
> returns some off the wall kernel version. It seems to be picking up extra
> info from God know where.

It comes from the version embedded in the kernel, returned via the
uname system call (man 2 uname).

carcharias rjf # strace -v -e uname uname
uname({sysname="Linux", nodename="carcharias",
release="2.6.15-suspend2-r3", version="#3 PREEMPT Sat Jan 21 10:00:05
MST 2006", machine="i686"}) = 0
uname({sysname="Linux", nodename="carcharias",
release="2.6.15-suspend2-r3", version="#3 PREEMPT Sat Jan 21 10:00:05
MST 2006", machine="i686"}) = 0

> $ uname -a
> Linux MRK 2.6.15-gentoo-r12.6.14-r-4_new #1 Fri Jan 27 12:38:49 EST 2006 i686
> AMD Athlon(tm) XP 2400+ AuthenticAMD GNU/Linux

There are various ways these versions can be set, including
EXTRAVERSION and LOCALVERSION.

What are using to build these kernels?

-Richard

-- 
gentoo-user@gentoo.org mailing list

Reply via email to