Re: Kernel message

From: Robert P. J. Day
Date: Sat Jun 02 2007 - 05:41:23 EST


On Sat, 2 Jun 2007, umesh@xxxxxxxxxxxxxxxx wrote:

> Can anyone send me the documentation about dmesg message that how
> can we understand by it. I am searching good document which can
> explain each and every line of dmesg.
>
> umesh

this is really more of a kernel newbie question that belongs on the
newbie list but, if you really want to know the meaning of each line,
you might want to trace the code from kernel startup to see when each
of those lines is printed to see what they represent.

starting in init/main.c, find the routine "start_kernel" around line
500 and several lines in, you'll see:

...
printk(KERN_NOTICE);
printk(linux_banner);
...

(why these two printk's are broken over two lines is a mystery but ...
whatever.)

then if you go to init/version.c, you can verify that linux_banner
does indeed represent the normal first line in /var/log/dmesg, such
as:

Linux version 2.6.20-1.2948.fc6
(brewbuilder@xxxxxxxxxxxxxxxxxxxxxxxxxxx) (gcc version 4.1.1 20070105
(Red Hat 4.1.1-51)) #1 SMP Fri Apr 27 19:48:40 EDT 2007

at that point, start following the code to see where each line in
dmesg comes from.

rday

p.s. please use a better subject line than just "Kernel message".
that doesn't tell anyone what you're actually asking about.

--
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://fsdev.net/wiki/index.php?title=Main_Page
========================================================================
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/