Re: Reading linux boot args

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Valdis,

Thansk for answer. I have made use of saved_command_linbe buffer that is available in all modules(extern present in linux/init.h)

Best Regards,
Manty

On Wed, Apr 3, 2013 at 3:07 AM, <Valdis.Kletnieks@xxxxxx> wrote:
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.

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux