Reading linux boot args

Valdis.Kletnieks at vt.edu Valdis.Kletnieks at vt.edu
Tue Apr 2 14:07:32 EDT 2013


On Tue, 02 Apr 2013 12:12:09 +0900, manty kuma said:

> Is there any way i could read the reason for reboot.
> I want to read it so that i can get the reason that is stored.
> like 0xABADBABE is watchdog 0xCODEDEAD is panic. Etc..
>
> Please suggest an alternative approach.
>

See the 'pstore' persistent storage filesystem in fs/pstore.
That lets you store more than just an int (you can even get it
to stash your dmesg buffer).

'more fs/pstore/Kconfig' would be a good place to start.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 865 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130402/2e68bdad/attachment.bin 


More information about the Kernelnewbies mailing list