<div dir="ltr"><div>Hi Valdis,<br><br></div>Thansk for answer. I have made use of saved_command_linbe buffer that is available in all modules(extern present in linux/init.h)<br><div class="gmail_extra"><br></div><div class="gmail_extra">
Best Regards,<br></div><div class="gmail_extra">Manty<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 3, 2013 at 3:07 AM, <span dir="ltr"><<a href="mailto:Valdis.Kletnieks@vt.edu" target="_blank">Valdis.Kletnieks@vt.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Tue, 02 Apr 2013 12:12:09 +0900, manty kuma said:<br>
<br>
> Is there any way i could read the reason for reboot.<br>
> I want to read it so that i can get the reason that is stored.<br>
> like 0xABADBABE is watchdog 0xCODEDEAD is panic. Etc..<br>
><br>
> Please suggest an alternative approach.<br>
><br>
<br>
</div>See the 'pstore' persistent storage filesystem in fs/pstore.<br>
That lets you store more than just an int (you can even get it<br>
to stash your dmesg buffer).<br>
<br>
'more fs/pstore/Kconfig' would be a good place to start.<br>
</blockquote></div><br></div></div>